Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| 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 class PrefRegistrySimple; | |
| 12 class Profile; | |
| 13 namespace base { class FilePath; } | |
| 14 | |
| 15 namespace profiles { | |
| 16 | |
| 17 // Checks if multiple profiles is enabled. | |
| 18 bool IsMultipleProfilesEnabled(); | |
| 19 | |
| 20 // Returns the path to the default profile directory, based on the given | |
| 21 // user data directory. | |
| 22 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir); | |
| 23 | |
| 24 // Returns the path to the preferences file given the user profile directory. | |
| 25 base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir); | |
| 26 | |
| 27 // Register multi-profile related preferences in Local State. | |
| 28 void RegisterPrefs(PrefRegistrySimple* registry); | |
|
Nico
2013/07/15 23:54:30
I'd go with profiles_state.h for the functions abo
noms
2013/07/16 18:10:40
Done.
| |
| 29 | |
| 30 // Activates a window for |profile| on the desktop specified by | |
| 31 // |desktop_type|. If no such window yet exists, or if |always_create| is | |
| 32 // true, this first creates a new window, then activates | |
| 33 // that. If activating an exiting window and multiple windows exists then the | |
| 34 // window that was most recently active is activated. This is used for | |
| 35 // creation of a window from the multi-profile dropdown menu. | |
| 36 void FindOrCreateNewWindowForProfile( | |
| 37 Profile* profile, | |
| 38 chrome::startup::IsProcessStartup process_startup, | |
| 39 chrome::startup::IsFirstRun is_first_run, | |
| 40 chrome::HostDesktopType desktop_type, | |
| 41 bool always_create); | |
| 42 | |
| 43 } // namespace profiles | |
| 44 | |
| 45 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_ | |
| OLD | NEW |