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

Unified Diff: chrome/browser/profiles/profiles_state.h

Issue 18615010: Refactor utility methods out of the ProfileManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unbreak rebase and added new static fn from trunk Created 7 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 | « chrome/browser/profiles/profile_window.cc ('k') | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7b21252fe7149f464f8a05bd8d805cb720cc799
--- /dev/null
+++ b/chrome/browser/profiles/profiles_state.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
+#define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
+
+class PrefRegistrySimple;
+namespace base { class FilePath; }
+
+namespace profiles {
+
+// Checks if multiple profiles is enabled.
+bool IsMultipleProfilesEnabled();
+
+// Checks if new profile management is enabled.
+bool IsNewProfileManagementEnabled();
+
+// Returns the path to the default profile directory, based on the given
+// user data directory.
+base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
+
+// Returns the path to the preferences file given the user profile directory.
+base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
+
+// Register multi-profile related preferences in Local State.
+void RegisterPrefs(PrefRegistrySimple* registry);
+
+} // namespace profiles
+
+#endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
« no previous file with comments | « chrome/browser/profiles/profile_window.cc ('k') | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698