| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/password_manager/auto_signin_first_run_dialog_android.h
" | 5 #include "chrome/browser/password_manager/auto_signin_first_run_dialog_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 "chrome/browser/password_manager/chrome_password_manager_client.h" | 9 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/sync/profile_sync_service_factory.h" | 11 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 12 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" | 12 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" |
| 13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 14 #include "components/browser_sync/browser/profile_sync_service.h" | 14 #include "components/browser_sync/profile_sync_service.h" |
| 15 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 15 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 16 #include "components/password_manager/core/browser/password_manager_constants.h" | 16 #include "components/password_manager/core/browser/password_manager_constants.h" |
| 17 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | 17 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" |
| 18 #include "jni/AutoSigninFirstRunDialog_jni.h" | 18 #include "jni/AutoSigninFirstRunDialog_jni.h" |
| 19 #include "ui/android/window_android.h" | 19 #include "ui/android/window_android.h" |
| 20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/gfx/range/range.h" | 21 #include "ui/gfx/range/range.h" |
| 22 | 22 |
| 23 using base::android::AttachCurrentThread; | 23 using base::android::AttachCurrentThread; |
| 24 using base::android::ConvertUTF16ToJavaString; | 24 using base::android::ConvertUTF16ToJavaString; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void AutoSigninFirstRunDialogAndroid::WasHidden() { | 112 void AutoSigninFirstRunDialogAndroid::WasHidden() { |
| 113 // TODO(https://crbug.com/610700): once bug is fixed, this code should be | 113 // TODO(https://crbug.com/610700): once bug is fixed, this code should be |
| 114 // gone. | 114 // gone. |
| 115 JNIEnv* env = AttachCurrentThread(); | 115 JNIEnv* env = AttachCurrentThread(); |
| 116 Java_AutoSigninFirstRunDialog_dismissDialog(env, dialog_jobject_); | 116 Java_AutoSigninFirstRunDialog_dismissDialog(env, dialog_jobject_); |
| 117 } | 117 } |
| 118 | 118 |
| 119 bool RegisterAutoSigninFirstRunDialogAndroid(JNIEnv* env) { | 119 bool RegisterAutoSigninFirstRunDialogAndroid(JNIEnv* env) { |
| 120 return RegisterNativesImpl(env); | 120 return RegisterNativesImpl(env); |
| 121 } | 121 } |
| OLD | NEW |