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

Unified Diff: chrome/browser/signin/signin_manager.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/google_auto_login_helper_unittest.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_manager.h
diff --git a/chrome/browser/signin/signin_manager.h b/chrome/browser/signin/signin_manager.h
index 7908af196d967aee93408cd90ceda8626ecfd670..ea6d1d111a710b9e2523f2ed58e58075d7547af5 100644
--- a/chrome/browser/signin/signin_manager.h
+++ b/chrome/browser/signin/signin_manager.h
@@ -31,6 +31,7 @@
#include "base/prefs/pref_change_registrar.h"
#include "base/prefs/pref_member.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/signin/google_auto_login_helper.h"
#include "chrome/browser/signin/signin_internals_util.h"
#include "chrome/browser/signin/signin_manager_base.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service.h"
@@ -185,6 +186,10 @@ class SigninManager : public SigninManagerBase,
bool IsSigninProcess(int host_id) const;
bool HasSigninProcess() const;
+ // Add or remove observers for the merge session notification.
+ void AddMergeSessionObserver(GoogleAutoLoginHelper::Observer* observer);
+ void RemoveMergeSessionObserver(GoogleAutoLoginHelper::Observer* observer);
+
protected:
// Flag saying whether signing out is allowed.
bool prohibit_signout_;
@@ -291,6 +296,9 @@ class SigninManager : public SigninManagerBase,
// Helper object to listen for changes to the signin allowed preference.
BooleanPrefMember signin_allowed_;
+ // Helper to merge signed in account into the content area.
+ scoped_ptr<GoogleAutoLoginHelper> merge_session_helper_;
+
DISALLOW_COPY_AND_ASSIGN(SigninManager);
};
« no previous file with comments | « chrome/browser/signin/google_auto_login_helper_unittest.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698