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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 174253002: Initialize chrome::DIR_USER_DATA early on for service processes, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move utility functions into related files. Created 6 years, 10 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/chrome_browser_main.cc » ('j') | chrome/common/switch_utils.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index 1d79c25c85aa9fd031bbc2c6e1815775e41e3cd0..5b9952c2e7712674137901a1d0903ea99dc0cb94 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -25,6 +25,7 @@
#include "chrome/common/crash_keys.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/profiling.h"
+#include "chrome/common/switch_utils.h"
#include "chrome/common/url_constants.h"
#include "chrome/plugin/chrome_content_plugin_client.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
@@ -578,6 +579,9 @@ void ChromeMainDelegate::PreSandboxStartup() {
child_process_logging::Init();
#endif
+ // Initialize chrome::DIR_USER_DATA early on for service processes, etc.
+ switches::InitializeUserDataDir();
Vitaly Buka (NO REVIEWS) 2014/02/21 23:11:33 Maybe note about logging too?
msw 2014/02/21 23:38:30 Done.
+
stats_counter_timer_.reset(new base::StatsCounterTimer("Chrome.Init"));
startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer>
(*stats_counter_timer_));
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | chrome/common/switch_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698