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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H _
6 #define CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H _
7
8 #include "base/macros.h"
9 #include "chrome/browser/password_manager/password_manager_infobar_delegate.h"
10
11 namespace content {
12 class WebContents;
13 }
14
gone 2015/11/03 18:39:00 nit: Add class comment
melandory 2015/11/03 21:43:28 Done.
15 class AutoSigninFirstRunInfobarDelegate
16 : public PasswordManagerInfoBarDelegate {
17 public:
18 static void Create(content::WebContents* web_contents,
19 const base::string16& message);
20
21 ~AutoSigninFirstRunInfobarDelegate() override;
22
23 base::string16 GetButtonLabel(InfoBarButton button) const override;
24 bool Accept() override;
25 bool Cancel() override;
26
27 base::string16 GetExplanation() { return explanation_; }
28
29 protected:
30 // Makes a ctor available in tests.
31 AutoSigninFirstRunInfobarDelegate(content::WebContents* web_contents,
32 bool is_smart_lock_branding_available,
33 const base::string16& message);
34
35 private:
36 base::string16 explanation_;
37
38 content::WebContents* web_contents_;
39
40 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunInfobarDelegate);
41 };
42
43 #endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGAT E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698