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

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: AutoSigninFirstRunInfoBar.java 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
15 // This delegate provides and acts on data for the android only auto sign-in
16 // first run experience infobar.
17 class AutoSigninFirstRunInfoBarDelegate
18 : public PasswordManagerInfoBarDelegate {
19 public:
20 static void Create(content::WebContents* web_contents,
21 const base::string16& message);
22
23 ~AutoSigninFirstRunInfoBarDelegate() override;
24
25 base::string16 GetButtonLabel(InfoBarButton button) const override;
26 bool Accept() override;
27 bool Cancel() override;
28
29 base::string16 GetExplanation() { return explanation_; }
30
31 protected:
32 // Makes a ctor available in tests.
33 AutoSigninFirstRunInfoBarDelegate(content::WebContents* web_contents,
34 bool is_smart_lock_branding_available,
35 const base::string16& message);
36
37 private:
38 base::string16 explanation_;
39
40 content::WebContents* web_contents_;
41
42 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunInfoBarDelegate);
43 };
44
45 #endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGAT E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698