Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Unified Diff: chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h

Issue 1379153003: [Smart Lock, UI] First run expience for Auto sign-in prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h
diff --git a/chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h b/chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..d68c1ff69134672bb137e8a9f6f8db2bd4356b8c
--- /dev/null
+++ b/chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h
@@ -0,0 +1,43 @@
+// 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_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H_
+#define CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H_
+
+#include "base/macros.h"
+#include "chrome/browser/password_manager/password_manager_infobar_delegate.h"
+
+namespace content {
+class WebContents;
+}
+
gone 2015/11/03 18:39:00 nit: Add class comment
melandory 2015/11/03 21:43:28 Done.
+class AutoSigninFirstRunInfobarDelegate
+ : public PasswordManagerInfoBarDelegate {
+ public:
+ static void Create(content::WebContents* web_contents,
+ const base::string16& message);
+
+ ~AutoSigninFirstRunInfobarDelegate() override;
+
+ base::string16 GetButtonLabel(InfoBarButton button) const override;
+ bool Accept() override;
+ bool Cancel() override;
+
+ base::string16 GetExplanation() { return explanation_; }
+
+ protected:
+ // Makes a ctor available in tests.
+ AutoSigninFirstRunInfobarDelegate(content::WebContents* web_contents,
+ bool is_smart_lock_branding_available,
+ const base::string16& message);
+
+ private:
+ base::string16 explanation_;
+
+ content::WebContents* web_contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunInfobarDelegate);
+};
+
+#endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698