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

Unified Diff: chrome/browser/signin/account_reconcilor.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
Index: chrome/browser/signin/account_reconcilor.h
diff --git a/chrome/browser/signin/account_reconcilor.h b/chrome/browser/signin/account_reconcilor.h
index db8f0b7a0a1f6f959d9dbdb4be9850f0b806a814..174f5e621092fc5b35de0809b3e53a765482504d 100644
--- a/chrome/browser/signin/account_reconcilor.h
+++ b/chrome/browser/signin/account_reconcilor.h
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
+#include "chrome/browser/signin/google_auto_login_helper.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -19,10 +20,10 @@ class Profile;
struct ChromeCookieDetails;
class AccountReconcilor : public BrowserContextKeyedService,
- content::NotificationObserver,
- GaiaAuthConsumer,
- OAuth2TokenService::Consumer,
- OAuth2TokenService::Observer {
+ public content::NotificationObserver,
+ public GaiaAuthConsumer,
+ public OAuth2TokenService::Consumer,
+ public OAuth2TokenService::Observer {
public:
explicit AccountReconcilor(Profile* profile);
virtual ~AccountReconcilor();
@@ -30,6 +31,10 @@ class AccountReconcilor : public BrowserContextKeyedService,
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
+ // Add or remove observers for the merge session notification.
+ void AddMergeSessionObserver(GoogleAutoLoginHelper::Observer* observer);
+ void RemoveMergeSessionObserver(GoogleAutoLoginHelper::Observer* observer);
+
Profile* profile() { return profile_; }
bool IsPeriodicReconciliationRunning() const {
@@ -126,6 +131,7 @@ class AccountReconcilor : public BrowserContextKeyedService,
Profile* profile_;
content::NotificationRegistrar registrar_;
base::RepeatingTimer<AccountReconcilor> reconciliation_timer_;
+ GoogleAutoLoginHelper merge_session_helper_;
bool registered_with_token_service_;
// Used during reconcile action.
« no previous file with comments | « chrome/browser/extensions/api/webstore_private/webstore_private_api.cc ('k') | chrome/browser/signin/account_reconcilor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698