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

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

Issue 18615010: Refactor utility methods out of the ProfileManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually fix CrOS compile error + review comments 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/avatar_menu_model_unittest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_manager.h
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index 1b2ba421ffad50d93203d07e115a36a9e98a5017..8756258c404f00d62446a29209ff632c2de1ea19 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -150,34 +150,11 @@ class ProfileManager : public base::NonThreadSafe,
// Indicate that the import process for |profile| has completed.
void OnImportFinished(Profile* profile);
- // ------------------ static utility functions -------------------
-
- // Returns the path to the default profile directory, based on the given
- // user data directory.
- static base::FilePath GetDefaultProfileDir(
- const base::FilePath& user_data_dir);
-
- // Returns the path to the preferences file given the user profile directory.
- static base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
-
// If a profile with the given path is currently managed by this object,
// return a pointer to the corresponding Profile object;
// otherwise return NULL.
Profile* GetProfileByPath(const base::FilePath& path) const;
- // Activates a window for |profile| on the desktop specified by
- // |desktop_type|. If no such window yet exists, or if |always_create| is
- // true, this first creates a new window, then activates
- // that. If activating an exiting window and multiple windows exists then the
- // window that was most recently active is activated. This is used for
- // creation of a window from the multi-profile dropdown menu.
- static void FindOrCreateNewWindowForProfile(
- Profile* profile,
- chrome::startup::IsProcessStartup process_startup,
- chrome::startup::IsFirstRun is_first_run,
- chrome::HostDesktopType desktop_type,
- bool always_create);
-
// Profile::Delegate implementation:
virtual void OnProfileCreated(Profile* profile,
bool success,
@@ -202,9 +179,6 @@ class ProfileManager : public base::NonThreadSafe,
const CreateCallback& callback,
bool is_managed);
- // Register multi-profile related preferences in Local State.
- static void RegisterPrefs(PrefRegistrySimple* registry);
-
// Returns a ProfileInfoCache object which can be used to get information
// about profiles without having to load them from disk.
ProfileInfoCache& GetProfileInfoCache();
@@ -219,9 +193,6 @@ class ProfileManager : public base::NonThreadSafe,
void ScheduleProfileForDeletion(const base::FilePath& profile_dir,
const CreateCallback& callback);
- // Checks if multiple profiles is enabled.
- static bool IsMultipleProfilesEnabled();
-
// Autoloads profiles if they are running background apps.
void AutoloadProfiles();
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model_unittest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698