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

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

Issue 23868042: Mark supervised profiles as such immediately when they're created. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 2 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // that case the callback will be called when profile creation is complete. 186 // that case the callback will be called when profile creation is complete.
187 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, 187 void ScheduleProfileForDeletion(const base::FilePath& profile_dir,
188 const CreateCallback& callback); 188 const CreateCallback& callback);
189 189
190 // Autoloads profiles if they are running background apps. 190 // Autoloads profiles if they are running background apps.
191 void AutoloadProfiles(); 191 void AutoloadProfiles();
192 192
193 // Sign-Out a profile against use until re-authentication. 193 // Sign-Out a profile against use until re-authentication.
194 void SignOutProfile(Profile* profile); 194 void SignOutProfile(Profile* profile);
195 195
196 // Initializes user prefs of |profile|. This includes profile name and
197 // avatar values.
198 void InitProfileUserPrefs(Profile* profile);
199
196 // Register and add testing profile to the ProfileManager. Use ONLY in tests. 200 // Register and add testing profile to the ProfileManager. Use ONLY in tests.
197 // This allows the creation of Profiles outside of the standard creation path 201 // This allows the creation of Profiles outside of the standard creation path
198 // for testing. If |addToCache|, adds to ProfileInfoCache as well. 202 // for testing. If |addToCache|, adds to ProfileInfoCache as well.
199 // If |start_deferred_task_runners|, starts the deferred task runners. 203 // If |start_deferred_task_runners|, starts the deferred task runners.
200 // Use ONLY in tests. 204 // Use ONLY in tests.
201 void RegisterTestingProfile(Profile* profile, 205 void RegisterTestingProfile(Profile* profile,
202 bool addToCache, 206 bool addToCache,
203 bool start_deferred_task_runners); 207 bool start_deferred_task_runners);
204 208
205 const base::FilePath& user_data_dir() const { return user_data_dir_; } 209 const base::FilePath& user_data_dir() const { return user_data_dir_; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 typedef std::vector<ProfilePathAndName> ProfilePathAndNames; 274 typedef std::vector<ProfilePathAndName> ProfilePathAndNames;
271 ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); 275 ProfilePathAndNames GetSortedProfilesFromDirectoryMap();
272 276
273 static bool CompareProfilePathAndName( 277 static bool CompareProfilePathAndName(
274 const ProfileManager::ProfilePathAndName& pair1, 278 const ProfileManager::ProfilePathAndName& pair1,
275 const ProfileManager::ProfilePathAndName& pair2); 279 const ProfileManager::ProfilePathAndName& pair2);
276 280
277 // Adds |profile| to the profile info cache if it hasn't been added yet. 281 // Adds |profile| to the profile info cache if it hasn't been added yet.
278 void AddProfileToCache(Profile* profile); 282 void AddProfileToCache(Profile* profile);
279 283
280 // Initializes user prefs of |profile|. This includes profile name and
281 // avatar values
282 void InitProfileUserPrefs(Profile* profile);
283
284 // Apply settings for (desktop) Guest User profile. 284 // Apply settings for (desktop) Guest User profile.
285 void SetGuestProfilePrefs(Profile* profile); 285 void SetGuestProfilePrefs(Profile* profile);
286 286
287 // For ChromeOS, determines if profile should be otr. 287 // For ChromeOS, determines if profile should be otr.
288 bool ShouldGoOffTheRecord(Profile* profile); 288 bool ShouldGoOffTheRecord(Profile* profile);
289 289
290 void RunCallbacks(const std::vector<CreateCallback>& callbacks, 290 void RunCallbacks(const std::vector<CreateCallback>& callbacks,
291 Profile* profile, 291 Profile* profile,
292 Profile::CreateStatus status); 292 Profile::CreateStatus status);
293 293
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 class ProfileManagerWithoutInit : public ProfileManager { 360 class ProfileManagerWithoutInit : public ProfileManager {
361 public: 361 public:
362 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 362 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
363 363
364 protected: 364 protected:
365 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 365 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
366 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 366 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
367 }; 367 };
368 368
369 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 369 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache_unittest.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698