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

Unified Diff: chrome/browser/signin/signin_tracker.h

Issue 110373007: Delay loading the NTP after sign in until MergeSession has been performed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo in chromeos Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/signin/signin_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_tracker.h
diff --git a/chrome/browser/signin/signin_tracker.h b/chrome/browser/signin/signin_tracker.h
index 390a945f3a79ecaaee8ec3f3ac482da2c2f01692..b5e522ba75f8930f9ff99547aa6dad7ba36f9176 100644
--- a/chrome/browser/signin/signin_tracker.h
+++ b/chrome/browser/signin/signin_tracker.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_
#define CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/signin/google_auto_login_helper.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_types.h"
@@ -47,7 +49,8 @@ class Profile;
// sync, and provides an Observer interface to notify the UI layer of changes
// in sync state so they can be reflected in the UI.
class SigninTracker : public content::NotificationObserver,
- public OAuth2TokenService::Observer {
+ public OAuth2TokenService::Observer,
+ public GoogleAutoLoginHelper::Observer {
public:
class Observer {
public:
@@ -56,6 +59,10 @@ class SigninTracker : public content::NotificationObserver,
// The signin attempt succeeded.
virtual void SigninSuccess() = 0;
+
+ // The signed in account has been merged into the content area cookie jar.
+ // This will be called only after a call to SigninSuccess().
+ virtual void MergeSessionComplete(const GoogleServiceAuthError& error) = 0;
};
// Creates a SigninTracker that tracks the signin status on the passed
@@ -77,6 +84,11 @@ class SigninTracker : public content::NotificationObserver,
// Initializes this by adding notifications and observers.
void Initialize();
+ // GoogleAutoLoginHelper::Observer implementation.
+ virtual void MergeSessionCompleted(
+ const std::string& account_id,
+ const GoogleServiceAuthError& error) OVERRIDE;
+
// The profile whose signin status we are tracking.
Profile* profile_;
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/signin/signin_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698