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

Side by Side Diff: chrome/browser/profiles/profile_manager.h

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update production interfaces based on review comments. Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This class keeps track of the currently-active profiles in the runtime. 5 // This class keeps track of the currently-active profiles in the runtime.
6 6
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
9 9
10 #include <list> 10 #include <list>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // creation. (Because directories can be removed, however, it may be the case 178 // creation. (Because directories can be removed, however, it may be the case
179 // that at some point the list of numbered profiles is not continuous.) 179 // that at some point the list of numbered profiles is not continuous.)
180 static void CreateMultiProfileAsync( 180 static void CreateMultiProfileAsync(
181 const string16& name, 181 const string16& name,
182 const string16& icon_url, 182 const string16& icon_url,
183 const CreateCallback& callback, 183 const CreateCallback& callback,
184 chrome::HostDesktopType desktop_type, 184 chrome::HostDesktopType desktop_type,
185 bool is_managed); 185 bool is_managed);
186 186
187 // Register multi-profile related preferences in Local State. 187 // Register multi-profile related preferences in Local State.
188 static void RegisterPrefs(PrefServiceSimple* prefs); 188 static void RegisterPrefs(PrefRegistrySimple* prefs);
189 189
190 // Returns a ProfileInfoCache object which can be used to get information 190 // Returns a ProfileInfoCache object which can be used to get information
191 // about profiles without having to load them from disk. 191 // about profiles without having to load them from disk.
192 ProfileInfoCache& GetProfileInfoCache(); 192 ProfileInfoCache& GetProfileInfoCache();
193 193
194 // Returns a ProfileShortcut Manager that enables the caller to create 194 // Returns a ProfileShortcut Manager that enables the caller to create
195 // profile specfic desktop shortcuts. 195 // profile specfic desktop shortcuts.
196 ProfileShortcutManager* profile_shortcut_manager(); 196 ProfileShortcutManager* profile_shortcut_manager();
197 197
198 // Schedules the profile at the given path to be deleted on shutdown. 198 // Schedules the profile at the given path to be deleted on shutdown.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 class ProfileManagerWithoutInit : public ProfileManager { 357 class ProfileManagerWithoutInit : public ProfileManager {
358 public: 358 public:
359 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); 359 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir);
360 360
361 protected: 361 protected:
362 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 362 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
363 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 363 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
364 }; 364 };
365 365
366 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 366 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698