Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 8348026: Add a component installer for Portable NaCl. Registration of installer is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes to rebase Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index 1760d46b30708d76259caa718985b1367d18f4f7..aaa368d465040aa37602ca4ddaf85a173b5c913b 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -69,6 +69,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "chrome/installer/util/browser_distribution.h"
+#include "chrome/nacl/pnacl_component_installer.h"
#include "content/browser/child_process_security_policy.h"
#include "content/browser/tab_contents/navigation_details.h"
#include "content/browser/tab_contents/tab_contents_view.h"
@@ -544,6 +545,11 @@ void RegisterComponentsForUpdate(const CommandLine& command_line) {
if (command_line.HasSwitch(switches::kEnableCRLSets))
g_browser_process->crl_set_fetcher()->StartInitialLoad(cus);
+ // This developer version of Pnacl should only be installed for developers.
+ if (command_line.HasSwitch(switches::kEnablePnacl)) {
+ RegisterPnaclComponent(cus);
+ }
+
cus->Start();
}

Powered by Google App Engine
This is Rietveld 408576698