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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 2487783002: Make Crashpad use the user data dir, rather than always default location (Closed)
Patch Set: . Created 4 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/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index b33dec417a1fe9ab77c86e7868ff781748e5e2e8..521b8f5f48aa7e171bffaf216ec4b9a9060f5a68 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -359,6 +359,9 @@ struct MainFunction {
};
// Initializes the user data dir. Must be called before InitializeLocalState().
+// WARNING! It is important that this code match behavior with
+// GetUserDataDirectory() in chrome_elf. The two functions must be updated in
+// sync.
Mark Mentovai 2016/11/10 22:06:17 Can we add a test for equivalence? Or can we refac
scottmg 2016/11/15 23:23:14 Done.
void InitializeUserDataDir() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
base::FilePath user_data_dir =

Powered by Google App Engine
This is Rietveld 408576698