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

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: fix includes 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
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..70070bc8c57e9d48dabb8a003f45a5baa4c3d99e 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -21,8 +21,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
#include "chrome/browser/ui/browser_list_observer.h"
-#include "chrome/browser/ui/host_desktop.h"
-#include "chrome/browser/ui/startup/startup_types.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -150,34 +148,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 +177,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 +191,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();

Powered by Google App Engine
This is Rietveld 408576698