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

Side by Side Diff: chrome/browser/profiles/profile_manager_util.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_
tfarina 2013/07/09 16:10:46 is this super related to ProfileManager? if not, I
noms 2013/07/09 17:47:40 These are methods that used to be in the ProfileMa
6 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_
7
8 #include "chrome/browser/ui/host_desktop.h"
9 #include "chrome/browser/ui/startup/startup_types.h"
10
11 namespace base {
12 class FilePath;
tfarina 2013/07/09 16:10:46 don't indent two spaces inside namespace declarati
noms 2013/07/09 17:47:40 Done.
13 }
14 class PrefRegistrySimple;
15 class Profile;
16
17 namespace profiles {
18
19 // Checks if multiple profiles is enabled.
20 bool IsMultipleProfilesEnabled();
21
22 // Returns the path to the default profile directory, based on the given
23 // user data directory.
24 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
25
26 // Returns the path to the preferences file given the user profile directory.
27 base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
28
29 // Register multi-profile related preferences in Local State.
30 void RegisterPrefs(PrefRegistrySimple* registry);
31
32 // Activates a window for |profile| on the desktop specified by
33 // |desktop_type|. If no such window yet exists, or if |always_create| is
34 // true, this first creates a new window, then activates
35 // that. If activating an exiting window and multiple windows exists then the
36 // window that was most recently active is activated. This is used for
37 // creation of a window from the multi-profile dropdown menu.
38 void FindOrCreateNewWindowForProfile(
39 Profile* profile,
40 chrome::startup::IsProcessStartup process_startup,
41 chrome::startup::IsFirstRun is_first_run,
42 chrome::HostDesktopType desktop_type,
43 bool always_create);
44
45 } // namespace profiles
46
47 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/profiles/profile_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698