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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 391783003: Enabling CRLSet for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using GetProfilePathByUserIdHash Created 6 years, 5 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 | « no previous file | chrome/browser/chromeos/login/users/user_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index f66f0df783601dc0efc04fdcdd91415385aaad2a..b01e0a174361be4994326fa8ecea32d06592ac89 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -399,15 +399,19 @@ void RegisterComponentsForUpdate() {
RegisterCldComponent(cus);
#endif
+ base::FilePath path;
+ if (PathService::Get(chrome::DIR_USER_DATA, &path)) {
#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
// CRLSetFetcher attempts to load a CRL set from either the local disk or
Jorge Lucangeli Obes 2014/07/22 15:29:15 Indentation here should match the code below.
// network.
- g_browser_process->crl_set_fetcher()->StartInitialLoad(cus);
+ // For Chrome OS this registration is delayed until user login.
Jorge Lucangeli Obes 2014/07/22 15:29:15 Here too.
+ g_browser_process->crl_set_fetcher()->StartInitialLoad(cus, path);
#elif defined(OS_ANDROID)
// The CRLSet component was enabled for some releases. This code attempts to
// delete it from the local disk of those how may have downloaded it.
Jorge Lucangeli Obes 2014/07/22 15:29:15 Here too.
- g_browser_process->crl_set_fetcher()->DeleteFromDisk();
+ g_browser_process->crl_set_fetcher()->DeleteFromDisk(path);
#endif
+ }
#if defined(OS_WIN)
ExecutePendingSwReporter(cus, g_browser_process->local_state());
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698