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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/message_loop/message_loop_proxy.h" | 12 #include "base/message_loop/message_loop_proxy.h" |
13 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
14 #include "chrome/browser/bookmarks/bookmark_model.h" | |
15 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 14 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
16 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 16 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
18 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 17 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
19 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
20 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" | 19 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" |
21 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 20 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
22 #include "chrome/browser/signin/signin_manager_factory.h" | 21 #include "chrome/browser/signin/signin_manager_factory.h" |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 23 #include "components/bookmarks/core/browser/bookmark_model.h" |
24 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 24 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
25 #include "components/signin/core/browser/signin_manager.h" | 25 #include "components/signin/core/browser/signin_manager.h" |
26 #include "components/signin/core/common/profile_management_switches.h" | 26 #include "components/signin/core/common/profile_management_switches.h" |
27 #include "jni/SigninManager_jni.h" | 27 #include "jni/SigninManager_jni.h" |
28 | 28 |
29 #if defined(ENABLE_CONFIGURATION_POLICY) | 29 #if defined(ENABLE_CONFIGURATION_POLICY) |
30 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 30 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
31 #include "chrome/browser/policy/cloud/user_policy_signin_service_android.h" | 31 #include "chrome/browser/policy/cloud/user_policy_signin_service_android.h" |
32 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" | 32 #include "chrome/browser/policy/cloud/user_policy_signin_service_factory.h" |
33 #include "components/policy/core/browser/browser_policy_connector.h" | 33 #include "components/policy/core/browser/browser_policy_connector.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 } | 260 } |
261 | 261 |
262 static jboolean IsNewProfileManagementEnabled(JNIEnv* env, jclass clazz) { | 262 static jboolean IsNewProfileManagementEnabled(JNIEnv* env, jclass clazz) { |
263 return switches::IsNewProfileManagement(); | 263 return switches::IsNewProfileManagement(); |
264 } | 264 } |
265 | 265 |
266 // static | 266 // static |
267 bool SigninManagerAndroid::Register(JNIEnv* env) { | 267 bool SigninManagerAndroid::Register(JNIEnv* env) { |
268 return RegisterNativesImpl(env); | 268 return RegisterNativesImpl(env); |
269 } | 269 } |
OLD | NEW |