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

Delta Between Two Patch Sets: src/engine/main.cpp

Issue 10836037: Share code for data path retrieval in engine and plugin (Closed)
Left Patch Set: Created June 4, 2013, 9:54 a.m.
Right Patch Set: Fixed nit Created June 4, 2013, 10:38 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/engine/Debug.cpp ('k') | src/plugin/PluginSettings.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #include "stdafx.h" 1 #include "stdafx.h"
2 2
3 #include "../shared/AutoHandle.h" 3 #include "../shared/AutoHandle.h"
4 #include "../shared/Communication.h" 4 #include "../shared/Communication.h"
5 #include "../shared/Utils.h"
5 #include "Debug.h" 6 #include "Debug.h"
6 #include "Utils.h"
7 7
8 namespace 8 namespace
9 { 9 {
10 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine; 10 std::auto_ptr<AdblockPlus::FilterEngine> filterEngine;
11 11
12 std::string ToUtf8String(std::wstring str) 12 std::string ToUtf8String(std::wstring str)
13 { 13 {
14 size_t length = str.size(); 14 size_t length = str.size();
15 if (length == 0) 15 if (length == 0)
16 return std::string(); 16 return std::string();
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 208 }
209 catch (std::runtime_error e) 209 catch (std::runtime_error e)
210 { 210 {
211 DebugException(e); 211 DebugException(e);
212 return 1; 212 return 1;
213 } 213 }
214 } 214 }
215 215
216 return 0; 216 return 0;
217 } 217 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld