Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/engine/Main.cpp

Issue 6025347820683264: Issue 1106 - Enable Acceptable Ads by default for new installs and updates from versions < 1.2 (Closed)
Patch Set: Discriminate first run page title for install/update Created Aug. 1, 2014, 3:08 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « locales/en.ini ('k') | src/plugin/AdblockPlusClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <AdblockPlus.h> 1 #include <AdblockPlus.h>
2 #include <functional> 2 #include <functional>
3 #include <vector> 3 #include <vector>
4 #include <thread> 4 #include <thread>
5 #include <Windows.h> 5 #include <Windows.h>
6 6
7 #include "../shared/AutoHandle.h" 7 #include "../shared/AutoHandle.h"
8 #include "../shared/Communication.h" 8 #include "../shared/Communication.h"
9 #include "../shared/Dictionary.h" 9 #include "../shared/Dictionary.h"
10 #include "../shared/Utils.h" 10 #include "../shared/Utils.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 { 299 {
300 response << true; 300 response << true;
301 firstRunActionExecuted = true; 301 firstRunActionExecuted = true;
302 } 302 }
303 else 303 else
304 { 304 {
305 response << false; 305 response << false;
306 } 306 }
307 break; 307 break;
308 } 308 }
309 case Communication::PROC_COMPARE_VERSIONS:
310 {
311 std::string v1, v2;
312 request >> v1 >> v2;
313
314 response << filterEngine->CompareVersions(v1, v2);
315 break;
316 }
309 case Communication::PROC_GET_DOCUMENTATION_LINK: 317 case Communication::PROC_GET_DOCUMENTATION_LINK:
310 { 318 {
311 response << ToUtf16String(filterEngine->GetPref("documentation_link")->A sString()); 319 response << ToUtf16String(filterEngine->GetPref("documentation_link")->A sString());
312 break; 320 break;
313 } 321 }
314 case Communication::PROC_TOGGLE_PLUGIN_ENABLED: 322 case Communication::PROC_TOGGLE_PLUGIN_ENABLED:
315 { 323 {
316 filterEngine->SetPref("enabled", filterEngine->GetJsEngine()->NewValue(! filterEngine->GetPref("enabled")->AsBool())); 324 filterEngine->SetPref("enabled", filterEngine->GetJsEngine()->NewValue(! filterEngine->GetPref("enabled")->AsBool()));
317 response << filterEngine->GetPref("enabled")->AsBool(); 325 response << filterEngine->GetPref("enabled")->AsBool();
318 break; 326 break;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 476 }
469 catch (const std::runtime_error& e) 477 catch (const std::runtime_error& e)
470 { 478 {
471 DebugException(e); 479 DebugException(e);
472 return 1; 480 return 1;
473 } 481 }
474 } 482 }
475 483
476 return 0; 484 return 0;
477 } 485 }
OLDNEW
« no previous file with comments | « locales/en.ini ('k') | src/plugin/AdblockPlusClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld