| 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 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_DIALOG_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_DIALOG_ANDROID_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_DIALOG_ANDROID_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_DIALOG_ANDROID_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_vector.h" | |
| 14 #include "chrome/browser/ui/passwords/manage_passwords_state.h" | 13 #include "chrome/browser/ui/passwords/manage_passwords_state.h" |
| 15 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
| 16 | 15 |
| 17 namespace content { | 16 namespace content { |
| 18 class WebContents; | 17 class WebContents; |
| 19 } | 18 } |
| 20 | 19 |
| 21 // Native counterpart for the android dialog which informs user about auto | 20 // Native counterpart for the android dialog which informs user about auto |
| 22 // sign-in feature and allows to turn it off. | 21 // sign-in feature and allows to turn it off. |
| 23 class AutoSigninFirstRunDialogAndroid : public content::WebContentsObserver { | 22 class AutoSigninFirstRunDialogAndroid : public content::WebContentsObserver { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 51 | 50 |
| 52 base::android::ScopedJavaGlobalRef<jobject> dialog_jobject_; | 51 base::android::ScopedJavaGlobalRef<jobject> dialog_jobject_; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunDialogAndroid); | 53 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunDialogAndroid); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 // Native JNI methods | 56 // Native JNI methods |
| 58 bool RegisterAutoSigninFirstRunDialogAndroid(JNIEnv* env); | 57 bool RegisterAutoSigninFirstRunDialogAndroid(JNIEnv* env); |
| 59 | 58 |
| 60 #endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_DIALOG_ANDROID_
H_ | 59 #endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_DIALOG_ANDROID_
H_ |
| OLD | NEW |