Chromium Code Reviews| 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/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_ | |
| OLD | NEW |