OLD | NEW |
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 #include "chrome/browser/android/signin/signin_manager_android.h" | 5 #include "chrome/browser/android/signin/signin_manager_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/signin/google_auto_login_helper.h" | 22 #include "chrome/browser/signin/google_auto_login_helper.h" |
23 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 23 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
25 #include "chrome/browser/signin/signin_manager.h" | 25 #include "chrome/browser/signin/signin_manager.h" |
26 #include "chrome/browser/signin/signin_manager_factory.h" | 26 #include "chrome/browser/signin/signin_manager_factory.h" |
27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
28 #include "jni/SigninManager_jni.h" | 28 #include "jni/SigninManager_jni.h" |
29 | 29 |
30 #if defined(ENABLE_CONFIGURATION_POLICY) | 30 #if defined(ENABLE_CONFIGURATION_POLICY) |
31 #include "chrome/browser/policy/browser_policy_connector.h" | 31 #include "chrome/browser/policy/browser_policy_connector.h" |
32 #include "chrome/browser/policy/cloud/cloud_policy_core.h" | |
33 #include "chrome/browser/policy/cloud/cloud_policy_store.h" | |
34 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" | 32 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
35 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 33 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
36 #include "chrome/browser/policy/cloud/user_policy_signin_service_android.h" | 34 #include "chrome/browser/policy/cloud/user_policy_signin_service_android.h" |
37 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" | 35 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" |
| 36 #include "components/policy/core/common/cloud/cloud_policy_core.h" |
| 37 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
38 #include "google_apis/gaia/gaia_auth_util.h" | 38 #include "google_apis/gaia/gaia_auth_util.h" |
39 #endif | 39 #endif |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 // A BrowsingDataRemover::Observer that clears all Profile data and then | 43 // A BrowsingDataRemover::Observer that clears all Profile data and then |
44 // invokes a callback and deletes itself. | 44 // invokes a callback and deletes itself. |
45 class ProfileDataRemover : public BrowsingDataRemover::Observer { | 45 class ProfileDataRemover : public BrowsingDataRemover::Observer { |
46 public: | 46 public: |
47 ProfileDataRemover(Profile* profile, const base::Closure& callback) | 47 ProfileDataRemover(Profile* profile, const base::Closure& callback) |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 return !policy::BrowserPolicyConnector::IsNonEnterpriseUser(username); | 246 return !policy::BrowserPolicyConnector::IsNonEnterpriseUser(username); |
247 #else | 247 #else |
248 return false; | 248 return false; |
249 #endif | 249 #endif |
250 } | 250 } |
251 | 251 |
252 // static | 252 // static |
253 bool SigninManagerAndroid::Register(JNIEnv* env) { | 253 bool SigninManagerAndroid::Register(JNIEnv* env) { |
254 return RegisterNativesImpl(env); | 254 return RegisterNativesImpl(env); |
255 } | 255 } |
OLD | NEW |