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

Unified Diff: chrome/common/switch_utils.h

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
Index: chrome/common/switch_utils.h
diff --git a/chrome/common/switch_utils.h b/chrome/common/switch_utils.h
index 83594d17d8bd5c3a508eb3d9e5312ac3f29b2bb6..bdb5282fc852adfe09f336b90fc3fa39066b2777 100644
--- a/chrome/common/switch_utils.h
+++ b/chrome/common/switch_utils.h
@@ -10,12 +10,22 @@
#include "base/command_line.h"
+namespace base {
+class FilePath;
+}
+
namespace switches {
// Remove the keys that we shouldn't pass through during restart.
void RemoveSwitchesForAutostart(
std::map<std::string, CommandLine::StringType>* switches);
+// Initializes the user data dir. Must be called before InitializeLocalState().
+void InitializeUserDataDir();
Vitaly Buka (NO REVIEWS) 2014/02/21 23:11:33 How about adding bool IsUserDataDirInitialized() i
msw 2014/02/21 23:38:30 Sadly, I intended this functionality to live in ch
+
+// Returns the originally specified user data dir if it was invalid.
+const base::FilePath& GetInvalidSpecifiedUserDataDir();
+
} // namespace switches
#endif // CHROME_COMMON_SWITCH_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698