OLD | NEW |
---|---|
(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_ | |
OLD | NEW |