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

Side by Side Diff: chrome/browser/android/signin/signin_manager_android.h

Issue 255013004: Refactor code to clear last signed-in user. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 void SignOut(JNIEnv* env, jobject obj); 46 void SignOut(JNIEnv* env, jobject obj);
47 47
48 base::android::ScopedJavaLocalRef<jstring> GetManagementDomain(JNIEnv* env, 48 base::android::ScopedJavaLocalRef<jstring> GetManagementDomain(JNIEnv* env,
49 jobject obj); 49 jobject obj);
50 50
51 void WipeProfileData(JNIEnv* env, jobject obj); 51 void WipeProfileData(JNIEnv* env, jobject obj);
52 52
53 void LogInSignedInUser(JNIEnv* env, jobject obj); 53 void LogInSignedInUser(JNIEnv* env, jobject obj);
54 54
55 void ClearLastSignedInUser(JNIEnv* env, jobject obj);
56
55 private: 57 private:
56 virtual ~SigninManagerAndroid(); 58 virtual ~SigninManagerAndroid();
57 59
58 #if defined(ENABLE_CONFIGURATION_POLICY) 60 #if defined(ENABLE_CONFIGURATION_POLICY)
59 void OnPolicyRegisterDone(const std::string& dm_token, 61 void OnPolicyRegisterDone(const std::string& dm_token,
60 const std::string& client_id); 62 const std::string& client_id);
61 void OnPolicyFetchDone(bool success); 63 void OnPolicyFetchDone(bool success);
62 #endif 64 #endif
63 65
64 void OnBrowsingDataRemoverDone(); 66 void OnBrowsingDataRemoverDone();
65 67
68 void ClearLastSignedInUser();
69
66 // MergeSessionHelper::Observer implementation. 70 // MergeSessionHelper::Observer implementation.
67 virtual void MergeSessionCompleted( 71 virtual void MergeSessionCompleted(
68 const std::string& account_id, 72 const std::string& account_id,
69 const GoogleServiceAuthError& error) OVERRIDE; 73 const GoogleServiceAuthError& error) OVERRIDE;
70 74
71 Profile* profile_; 75 Profile* profile_;
72 76
73 // Java-side SigninManager object. 77 // Java-side SigninManager object.
74 base::android::ScopedJavaGlobalRef<jobject> java_signin_manager_; 78 base::android::ScopedJavaGlobalRef<jobject> java_signin_manager_;
75 79
(...skipping 10 matching lines...) Expand all
86 90
87 // Helper to merge the signed into account into the cookie jar session. 91 // Helper to merge the signed into account into the cookie jar session.
88 scoped_ptr<MergeSessionHelper> merge_session_helper_; 92 scoped_ptr<MergeSessionHelper> merge_session_helper_;
89 93
90 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_; 94 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_;
91 95
92 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid); 96 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid);
93 }; 97 };
94 98
95 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ 99 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698