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

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/basictypes.h"
vabr (Chromium) 2015/11/03 15:28:57 Did you mean to #include just "base/macros.h"? The
melandory 2015/11/03 16:32:35 Done.
9 #include "chrome/browser/password_manager/password_manager_infobar_delegate.h"
10 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
vabr (Chromium) 2015/11/03 15:28:57 This does not look used.
melandory 2015/11/03 16:32:35 Done.
11
12 namespace content {
13 class WebContents;
14 }
15
16 class AutoSigninFirstRunInfobarDelegate
17 : public PasswordManagerInfoBarDelegate {
18 public:
19 static void Create(content::WebContents* web_contents,
20 const base::string16& message);
21
22 ~AutoSigninFirstRunInfobarDelegate() override;
23
24 base::string16 GetButtonLabel(InfoBarButton button) const override;
25 bool Accept() override;
26 bool Cancel() override;
27
28 base::string16 GetExplanation() { return explanation_; }
29
30 protected:
31 // Makes a ctor available in tests.
32 AutoSigninFirstRunInfobarDelegate(content::WebContents* web_contents,
33 bool is_smart_lock_branding_available,
34 const base::string16& message);
35
36 private:
37 base::string16 explanation_;
38
39 content::WebContents* web_contents_;
40
41 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunInfobarDelegate);
42 };
43
44 #endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGAT E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698