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

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 CrOS compile error 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 (c) 2013 The Chromium Authors. All rights reserved.
tfarina 2013/07/08 19:42:51 micronit: no (c)
noms 2013/07/08 21:44:48 Done.
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 "base/files/file_path.h"
9 #include "chrome/browser/profiles/profile.h"
tfarina 2013/07/08 19:42:51 could you forward declare this instead?
noms 2013/07/08 21:44:48 Done.
10 #include "chrome/browser/ui/host_desktop.h"
11 #include "chrome/browser/ui/startup/startup_types.h"
12
13 namespace profiles {
14
15 // Checks if multiple profiles is enabled.
16 bool IsMultipleProfilesEnabled();
17
18 // Returns the path to the default profile directory, based on the given
19 // user data directory.
20 base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
21
22 // Returns the path to the preferences file given the user profile directory.
23 base::FilePath GetProfilePrefsPath(const base::FilePath& profile_dir);
24
25 // Register multi-profile related preferences in Local State.
26 void RegisterPrefs(PrefRegistrySimple* registry);
tfarina 2013/07/08 19:42:51 please forward declare this, don't rely on the inc
noms 2013/07/08 21:44:48 Done.
27
28 // Activates a window for |profile| on the desktop specified by
29 // |desktop_type|. If no such window yet exists, or if |always_create| is
30 // true, this first creates a new window, then activates
31 // that. If activating an exiting window and multiple windows exists then the
32 // window that was most recently active is activated. This is used for
33 // creation of a window from the multi-profile dropdown menu.
34 void FindOrCreateNewWindowForProfile(
35 Profile* profile,
36 chrome::startup::IsProcessStartup process_startup,
37 chrome::startup::IsFirstRun is_first_run,
38 chrome::HostDesktopType desktop_type,
39 bool always_create);
40
41 } // namespace profiles
42
43 #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