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

Unified Diff: chrome/browser/android/signin/signin_manager_android.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 | « no previous file | chrome/browser/android/signin/signin_manager_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/signin/signin_manager_android.h
diff --git a/chrome/browser/android/signin/signin_manager_android.h b/chrome/browser/android/signin/signin_manager_android.h
index 40bb4113d9ef3cd7683d86af4f1cd7a6cd3baa3e..49e1a03acc2cbffa9c265346da99c96230133d77 100644
--- a/chrome/browser/android/signin/signin_manager_android.h
+++ b/chrome/browser/android/signin/signin_manager_android.h
@@ -13,7 +13,9 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "chrome/browser/signin/google_auto_login_helper.h"
+class GoogleServiceAuthError;
class Profile;
namespace policy {
@@ -28,7 +30,7 @@ class CloudPolicyClient;
//
// This class implements parts of the sign-in flow, to make sure that policy
// is available before sign-in completes.
-class SigninManagerAndroid {
+class SigninManagerAndroid : public GoogleAutoLoginHelper::Observer {
public:
SigninManagerAndroid(JNIEnv* env, jobject obj);
@@ -61,6 +63,11 @@ class SigninManagerAndroid {
void OnBrowsingDataRemoverDone();
+ // GoogleAutoLoginHelper::Observer implementation.
+ virtual void MergeSessionCompleted(
+ const std::string& account_id,
+ const GoogleServiceAuthError& error) OVERRIDE;
+
Profile* profile_;
// Java-side SigninManager object.
@@ -77,6 +84,9 @@ class SigninManagerAndroid {
std::string username_;
#endif
+ // Helper to merge the signed into account into the cookie jar session.
+ scoped_ptr<GoogleAutoLoginHelper> merge_session_helper_;
+
base::WeakPtrFactory<SigninManagerAndroid> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid);
« no previous file with comments | « no previous file | chrome/browser/android/signin/signin_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698