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

Unified Diff: chrome/browser/chromeos/login/login_performer.h

Issue 8840003: Replace ProfileManagerObserver with callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: weakptr Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/login_performer.h
diff --git a/chrome/browser/chromeos/login/login_performer.h b/chrome/browser/chromeos/login/login_performer.h
index 1372a10e7f3c339092bf9109a9e45b35ee877cb5..c67ca5ea7fa64c65750eef53b2c05e5ed8db3d7c 100644
--- a/chrome/browser/chromeos/login/login_performer.h
+++ b/chrome/browser/chromeos/login/login_performer.h
@@ -52,7 +52,7 @@ namespace chromeos {
// 2. Pending online auth request.
class LoginPerformer : public LoginStatusConsumer,
public content::NotificationObserver,
- public ProfileManagerObserver {
+ public base::SupportsWeakPtr<LoginUtilsImpl> {
Robert Sesek 2011/12/07 16:36:13 This class already holds a WeakPtrFactory weak_fac
sail 2011/12/07 17:18:13 Done.
public:
// Delegate class to get notifications from the LoginPerformer.
class Delegate : public LoginStatusConsumer {
@@ -126,8 +126,9 @@ class LoginPerformer : public LoginStatusConsumer,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // ProfileManagerObserver implementation:
- virtual void OnProfileCreated(Profile* profile, Status status) OVERRIDE;
+ // Callback for asynchronous profile creation.
+ void OnProfileCreated(Profile* profile,
+ Profile::CreateStatus status);
// Requests screen lock and subscribes to screen lock notifications.
void RequestScreenLock();
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_performer.cc » ('j') | chrome/browser/profiles/profile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698