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

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: 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') | no next file with comments »
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..b03b027981dda92f528a4be39f7646aae420584c 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -17,6 +17,7 @@
#include "build/build_config.h"
#include "chrome/browser/chrome_content_browser_client.h"
#include "chrome/browser/defaults.h"
+#include "chrome/browser/user_data_dir_extractor.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_paths.h"
@@ -33,6 +34,7 @@
#include "components/startup_metric_utils/startup_metric_utils.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_paths.h"
+#include "content/public/common/main_function_params.h"
#include "ui/base/ui_base_switches.h"
#if defined(OS_WIN)
@@ -578,6 +580,9 @@ void ChromeMainDelegate::PreSandboxStartup() {
child_process_logging::Init();
#endif
+ // Initialize chrome::DIR_USER_DATA early on for service processes, etc.
+ chrome::GetUserDataDir(content::MainFunctionParams(command_line));
Vitaly Buka (NO REVIEWS) 2014/02/20 19:58:17 Should we fail silently for service or any other c
msw 2014/02/20 20:58:48 Hmm, the dialog does show up a second time when I
+
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698