OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_UPDATE_PASSWORD_INFOBAR_DELEGATE_ANDROID
_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_UPDATE_PASSWORD_INFOBAR_DELEGATE_ANDROID
_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_UPDATE_PASSWORD_INFOBAR_DELEGATE_ANDROID
_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_UPDATE_PASSWORD_INFOBAR_DELEGATE_ANDROID
_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 private: | 54 private: |
55 UpdatePasswordInfoBarDelegate( | 55 UpdatePasswordInfoBarDelegate( |
56 content::WebContents* web_contents, | 56 content::WebContents* web_contents, |
57 std::unique_ptr<password_manager::PasswordFormManager> form_to_update, | 57 std::unique_ptr<password_manager::PasswordFormManager> form_to_update, |
58 bool is_smartlock_branding_enabled); | 58 bool is_smartlock_branding_enabled); |
59 | 59 |
60 // ConfirmInfoBarDelegate: | 60 // ConfirmInfoBarDelegate: |
61 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 61 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 62 int GetButtons() const override; |
62 base::string16 GetButtonLabel(InfoBarButton button) const override; | 63 base::string16 GetButtonLabel(InfoBarButton button) const override; |
63 bool Accept() override; | 64 bool Accept() override; |
64 bool Cancel() override; | |
65 | 65 |
66 ManagePasswordsState passwords_state_; | 66 ManagePasswordsState passwords_state_; |
67 base::string16 branding_; | 67 base::string16 branding_; |
68 bool is_smartlock_branding_enabled_; | 68 bool is_smartlock_branding_enabled_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(UpdatePasswordInfoBarDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(UpdatePasswordInfoBarDelegate); |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_BROWSER_PASSWORD_MANAGER_UPDATE_PASSWORD_INFOBAR_DELEGATE_ANDR
OID_H_ | 73 #endif // CHROME_BROWSER_PASSWORD_MANAGER_UPDATE_PASSWORD_INFOBAR_DELEGATE_ANDR
OID_H_ |
OLD | NEW |