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

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

Issue 8342054: net: enable CRL sets behind a command line flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 months 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
« no previous file with comments | « chrome/browser/net/ssl_config_service_manager_pref.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_init.cc
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
index 779f025cf7e79ae127887cd1d37b74f2eeacaaf7..e167a2114406151a60dc17f9be957199959efd0d 100644
--- a/chrome/browser/ui/browser_init.cc
+++ b/chrome/browser/ui/browser_init.cc
@@ -526,7 +526,7 @@ void RecordAppLaunches(
}
}
-void RegisterComponentsForUpdate() {
+void RegisterComponentsForUpdate(const CommandLine& command_line) {
ComponentUpdateService* cus = g_browser_process->component_updater();
if (!cus)
return;
@@ -537,10 +537,10 @@ void RegisterComponentsForUpdate() {
RegisterPepperFlashComponent(cus);
RegisterNPAPIFlashComponent(cus);
- // CRLSetFetcher attempts to load a CRL set from either the local disk
- // or network.
- // TODO(agl): this is disabled for now while it's plumbed in.
- // g_browser_process->crl_set_fetcher()->StartInitialLoad(cus);
+ // CRLSetFetcher attempts to load a CRL set from either the local disk or
+ // network.
+ if (command_line.HasSwitch(switches::kEnableCRLSets))
+ g_browser_process->crl_set_fetcher()->StartInitialLoad(cus);
cus->Start();
}
@@ -1389,7 +1389,7 @@ bool BrowserInit::ProcessCmdLineImpl(const CommandLine& command_line,
if (command_line.HasSwitch(switches::kDisablePromptOnRepost))
NavigationController::DisablePromptOnRepost();
- RegisterComponentsForUpdate();
+ RegisterComponentsForUpdate(command_line);
// Look for the testing channel ID ONLY during process startup
if (command_line.HasSwitch(switches::kTestingChannelID)) {
« no previous file with comments | « chrome/browser/net/ssl_config_service_manager_pref.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698