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

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: 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/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 c26bd568831a68541289d34e84a11817c7e895da..fa457025136398def55de28afef537f8855eb1c6 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,
@@ -205,9 +180,6 @@ class ProfileManager : public base::NonThreadSafe,
// Returns the full path to be used for guest profiles.
static base::FilePath GetGuestProfilePath();
- // 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();
@@ -222,12 +194,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();
-
- // Checks if new profile management is enabled.
- static bool IsNewProfileManagementEnabled();
-
// 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