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: Merged upstream, addressed issues, renamed AppInfo fields Created April 17, 2013, 2:47 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
Index: shell/src/Main.cpp
===================================================================
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -49,7 +49,11 @@
AdblockPlus::DefaultFileSystem fileSystem;
AdblockPlus::DefaultWebRequest webRequest;
CerrErrorCallback errorCallback;
- AdblockPlus::JsEngine jsEngine(&fileSystem, &webRequest, &errorCallback);
+ AdblockPlus::AppInfo appInfo;
+ appInfo.version = "1.0";
+ appInfo.name = "Adblock Plus Shell";
+ AdblockPlus::JsEngine jsEngine(appInfo, &fileSystem, &webRequest,
+ &errorCallback);
AdblockPlus::FilterEngine filterEngine(jsEngine);
CommandMap commands;
« no previous file with comments | « libadblockplus.gyp ('k') | src/AppInfoJsObject.h » ('j') | src/AppInfoJsObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld