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

Unified Diff: chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h

Issue 2588323002: Revert "Remove Finch support for PasswordBranding" (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h
diff --git a/chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h b/chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h
index 3ce24e40802e6b65b6c8d616c4af5985cedd4700..9c91298096691fa44475d76e7e435dccf774f8f0 100644
--- a/chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h
+++ b/chrome/browser/password_manager/generated_password_saved_infobar_delegate_android.h
@@ -18,8 +18,7 @@ class WebContents;
class GeneratedPasswordSavedInfoBarDelegateAndroid
: public infobars::InfoBarDelegate {
public:
- // Creates and shows the infobar. Implemented with
- // GeneratedPasswordSavedInfoBar.
+ // Creates and shows the infobar. Implemented in the platform-specific file.
static void Create(content::WebContents* web_contents);
~GeneratedPasswordSavedInfoBarDelegateAndroid() override;
@@ -37,7 +36,8 @@ class GeneratedPasswordSavedInfoBarDelegateAndroid
void OnInlineLinkClicked();
private:
- GeneratedPasswordSavedInfoBarDelegateAndroid();
+ explicit GeneratedPasswordSavedInfoBarDelegateAndroid(
+ content::WebContents* web_contents);
// infobars::InfoBarDelegate:
Type GetInfoBarType() const override;
@@ -53,6 +53,11 @@ class GeneratedPasswordSavedInfoBarDelegateAndroid
// The translated label of the button.
base::string16 button_label_;
+ content::WebContents* web_contents_;
+
+ // If smart lock branding should be used.
+ bool smart_lock_branding_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(GeneratedPasswordSavedInfoBarDelegateAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698