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

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

Issue 11043057: First run page triggering (Closed)
Patch Set: Created July 11, 2013, 9:49 a.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 | « no previous file | src/plugin/AdblockPlusClient.h » ('j') | src/plugin/AdblockPlusClient.cpp » ('J')
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 <Windows.h> 4 #include <Windows.h>
5 5
6 #include "../shared/AutoHandle.h" 6 #include "../shared/AutoHandle.h"
7 #include "../shared/Communication.h" 7 #include "../shared/Communication.h"
8 #include "../shared/Dictionary.h" 8 #include "../shared/Dictionary.h"
9 #include "../shared/Utils.h" 9 #include "../shared/Utils.h"
10 #include "../shared/Version.h" 10 #include "../shared/Version.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 AdblockPlus::JsValuePtr valuePtr = filterEngine->GetPref(name); 160 AdblockPlus::JsValuePtr valuePtr = filterEngine->GetPref(name);
161 if ((valuePtr->IsNull()) || (!valuePtr->IsString())) 161 if ((valuePtr->IsNull()) || (!valuePtr->IsString()))
162 response << 0; 162 response << 0;
163 else 163 else
164 { 164 {
165 response << 1; 165 response << 1;
166 response << valuePtr->AsString(); 166 response << valuePtr->AsString();
167 } 167 }
168 break; 168 break;
169 } 169 }
170 case Communication::PROC_GET_IS_FIRST_RUN:
171 {
Wladimir Palant 2013/07/11 11:58:10 Wrong indentation?
172 response << filterEngine->IsFirstRun();
173 break;
174 }
170 175
171 } 176 }
172 return response; 177 return response;
173 } 178 }
174 179
175 DWORD WINAPI ClientThread(LPVOID param) 180 DWORD WINAPI ClientThread(LPVOID param)
176 { 181 {
177 std::auto_ptr<Communication::Pipe> pipe(static_cast<Communication::Pipe*>(pa ram)); 182 std::auto_ptr<Communication::Pipe> pipe(static_cast<Communication::Pipe*>(pa ram));
178 183
179 try 184 try
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 277 }
273 catch (std::runtime_error e) 278 catch (std::runtime_error e)
274 { 279 {
275 DebugException(e); 280 DebugException(e);
276 return 1; 281 return 1;
277 } 282 }
278 } 283 }
279 284
280 return 0; 285 return 0;
281 } 286 }
OLDNEW
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.h » ('j') | src/plugin/AdblockPlusClient.cpp » ('J')

Powered by Google App Engine
This is Rietveld