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

Unified Diff: shell/src/Main.cpp

Issue 10198022: Pass application data into libadblockplus (Closed)
Patch Set: Created April 12, 2013, 1:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/info.js ('K') | « libadblockplus.gyp ('k') | src/AppInfoJsObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/Main.cpp
===================================================================
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -61,7 +61,12 @@
LibFileReader fileReader;
AdblockPlus::DefaultWebRequest webRequest;
CerrErrorCallback errorCallback;
- AdblockPlus::JsEngine jsEngine(&fileReader, &webRequest, &errorCallback);
+ AdblockPlus::AppInfo appInfo;
+ appInfo.addonVersion = "1.0";
+ appInfo.addonName = "Adblock Plus Shell";
+ appInfo.application = "abpshell";
+ AdblockPlus::JsEngine jsEngine(appInfo, &fileReader, &webRequest,
+ &errorCallback);
AdblockPlus::FilterEngine filterEngine(jsEngine);
CommandMap commands;
« lib/info.js ('K') | « libadblockplus.gyp ('k') | src/AppInfoJsObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld