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

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

Issue 1786263002: Remove uses of ENABLE_CONFIGURATION_POLICY from src/chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sort Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/android/signin/signin_manager_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 jboolean IsSigninAllowedByPolicy( 72 jboolean IsSigninAllowedByPolicy(
73 JNIEnv* env, 73 JNIEnv* env,
74 const base::android::JavaParamRef<jobject>& obj); 74 const base::android::JavaParamRef<jobject>& obj);
75 75
76 jboolean IsSignedInOnNative(JNIEnv* env, 76 jboolean IsSignedInOnNative(JNIEnv* env,
77 const base::android::JavaParamRef<jobject>& obj); 77 const base::android::JavaParamRef<jobject>& obj);
78 78
79 private: 79 private:
80 ~SigninManagerAndroid(); 80 ~SigninManagerAndroid();
81 81
82 #if defined(ENABLE_CONFIGURATION_POLICY)
83 void OnPolicyRegisterDone(const std::string& dm_token, 82 void OnPolicyRegisterDone(const std::string& dm_token,
84 const std::string& client_id); 83 const std::string& client_id);
85 void OnPolicyFetchDone(bool success); 84 void OnPolicyFetchDone(bool success);
86 #endif
87 85
88 void OnBrowsingDataRemoverDone( 86 void OnBrowsingDataRemoverDone(
89 const base::android::ScopedJavaGlobalRef<jobject>& callback); 87 const base::android::ScopedJavaGlobalRef<jobject>& callback);
90 88
91 void ClearLastSignedInUser(); 89 void ClearLastSignedInUser();
92 90
93 void OnSigninAllowedPrefChanged(); 91 void OnSigninAllowedPrefChanged();
94 92
95 Profile* profile_; 93 Profile* profile_;
96 94
97 // Java-side SigninManager object. 95 // Java-side SigninManager object.
98 base::android::ScopedJavaGlobalRef<jobject> java_signin_manager_; 96 base::android::ScopedJavaGlobalRef<jobject> java_signin_manager_;
99 97
100 #if defined(ENABLE_CONFIGURATION_POLICY)
101 // CloudPolicy credentials stored during a pending sign-in, awaiting user 98 // CloudPolicy credentials stored during a pending sign-in, awaiting user
102 // confirmation before starting to fetch policies. 99 // confirmation before starting to fetch policies.
103 std::string dm_token_; 100 std::string dm_token_;
104 std::string client_id_; 101 std::string client_id_;
105 102
106 // Username that is pending sign-in. This is used to extract the domain name 103 // Username that is pending sign-in. This is used to extract the domain name
107 // for the policy dialog, when |username_| corresponds to a managed account. 104 // for the policy dialog, when |username_| corresponds to a managed account.
108 std::string username_; 105 std::string username_;
109 #endif
110 106
111 PrefChangeRegistrar pref_change_registrar_; 107 PrefChangeRegistrar pref_change_registrar_;
112 108
113 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_; 109 base::WeakPtrFactory<SigninManagerAndroid> weak_factory_;
114 110
115 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid); 111 DISALLOW_COPY_AND_ASSIGN(SigninManagerAndroid);
116 }; 112 };
117 113
118 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_ 114 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_MANAGER_ANDROID_H_
OLDNEW
« 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