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

Unified Diff: src/plugin/Plugin.cpp

Issue 11254007: Installation with registry keys
Patch Set: Created July 25, 2013, 9:57 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
« no previous file with comments | « src/plugin/AdblockPlusClient.cpp ('k') | src/plugin/PluginUtil.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/Plugin.cpp
===================================================================
--- a/src/plugin/Plugin.cpp
+++ b/src/plugin/Plugin.cpp
@@ -13,6 +13,7 @@
#include "PluginSettings.h"
#include "PluginMimeFilterClient.h"
#include "Msiquery.h"
+#include "../shared/Utils.h"
#ifdef SUPPORT_FILTER
#include "PluginFilter.h"
@@ -44,6 +45,17 @@
return FALSE;
}
+ /*
+ * Do a quick validation of the installation.
+ */
+ if ( ! Location::all_known() ){
+ return FALSE;
+ /*
+ * Future: Write an event to the Windows log file about failure to load.
+ */
+ }
+
+
_Module.Init(ObjectMap, _Module.GetModuleInstance(), &LIBID_PluginLib);
break;
« no previous file with comments | « src/plugin/AdblockPlusClient.cpp ('k') | src/plugin/PluginUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld