Index: chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.h |
diff --git a/chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.h b/chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..edddece0f9a871ff1c31e4d4ee69d75bf4c2f9c1 |
--- /dev/null |
+++ b/chrome/browser/ui/android/infobars/auto_signin_first_run_infobar.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_SIGNIN_FIRST_RUN_INFOBAR_H_ |
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_SIGNIN_FIRST_RUN_INFOBAR_H_ |
+ |
+#include "base/macros.h" |
+#include "chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h" |
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
+ |
+// The Android infobar that offers the user the ability to save a password |
+// for the site. |
+class AutoSigninFirstRunInfoBar : public ConfirmInfoBar { |
+ public: |
+ explicit AutoSigninFirstRunInfoBar( |
+ scoped_ptr<AutoSigninFirstRunInfoBarDelegate> delegate); |
+ |
+ ~AutoSigninFirstRunInfoBar() override; |
+ |
+ static bool Register(JNIEnv* env); |
+ |
+ private: |
+ // ConfirmInfoBar: |
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
+ JNIEnv* env) override; |
+ void OnLinkClicked(JNIEnv* env, jobject obj) override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunInfoBar); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTO_SIGNIN_FIRST_RUN_INFOBAR_H_ |