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

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: . Created 7 years, 3 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void Observe(int type, 133 virtual void Observe(int type,
134 const content::NotificationSource& source, 134 const content::NotificationSource& source,
135 const content::NotificationDetails& details) OVERRIDE; 135 const content::NotificationDetails& details) OVERRIDE;
136 136
137 // If a profile with the given path is currently managed by this object, 137 // If a profile with the given path is currently managed by this object,
138 // return a pointer to the corresponding Profile object; 138 // return a pointer to the corresponding Profile object;
139 // otherwise return NULL. 139 // otherwise return NULL.
140 Profile* GetProfileByPath(const base::FilePath& path) const; 140 Profile* GetProfileByPath(const base::FilePath& path) const;
141 141
142 // Profile::Delegate implementation: 142 // Profile::Delegate implementation:
143 virtual void OnPrefsLoaded(Profile* profile) OVERRIDE;
143 virtual void OnProfileCreated(Profile* profile, 144 virtual void OnProfileCreated(Profile* profile,
144 bool success, 145 bool success,
145 bool is_new_profile) OVERRIDE; 146 bool is_new_profile) OVERRIDE;
146 147
147 // Add or remove a profile launcher to/from the list of launchers waiting for 148 // Add or remove a profile launcher to/from the list of launchers waiting for
148 // new profiles to be created from the multi-profile menu. 149 // new profiles to be created from the multi-profile menu.
149 void AddProfileLauncher(NewProfileLauncher* profile_launcher); 150 void AddProfileLauncher(NewProfileLauncher* profile_launcher);
150 void RemoveProfileLauncher(NewProfileLauncher* profile_launcher); 151 void RemoveProfileLauncher(NewProfileLauncher* profile_launcher);
151 152
152 // Creates a new profile in the next available multiprofile directory. 153 // Creates a new profile in the next available multiprofile directory.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 class ProfileManagerWithoutInit : public ProfileManager { 361 class ProfileManagerWithoutInit : public ProfileManager {
361 public: 362 public:
362 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); 363 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir);
363 364
364 protected: 365 protected:
365 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} 366 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {}
366 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} 367 virtual void DoFinalInitLogging(Profile*) OVERRIDE {}
367 }; 368 };
368 369
369 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ 370 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698