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

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

Issue 1134863002: [Smart Lock] Smart Lock branding in save password infobar available only for signed users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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/save_password_infobar_delegate.h
diff --git a/chrome/browser/password_manager/save_password_infobar_delegate.h b/chrome/browser/password_manager/save_password_infobar_delegate.h
index f9783c2d21a7a1943f63da2cc73d8efd29fc78a5..3c02c84fe749f42d15cbdfb2a1970505d9a7d810 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.h
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.h
@@ -60,6 +60,7 @@ class SavePasswordInfoBarDelegate : public ConfirmInfoBarDelegate {
protected:
// Makes a ctor available in tests.
SavePasswordInfoBarDelegate(
+ content::WebContents* web_contents,
Mike West 2015/05/11 15:51:48 Nit: Could you pass in the profile instead? Or per
melandory 2015/05/12 09:07:23 Done.
scoped_ptr<password_manager::PasswordFormManager> form_to_save,
const std::string& uma_histogram_suffix,
password_manager::CredentialSourceType source_type);
@@ -84,6 +85,10 @@ class SavePasswordInfoBarDelegate : public ConfirmInfoBarDelegate {
// Infobar appearance (title, buttons) depends on value of this parameter.
password_manager::CredentialSourceType source_type_;
+ // TODO(melandory): This member can be removed if we enable Smart Lock for
+ // non-signed in users.
+ content::WebContents* web_contents_;
+
DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBarDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698