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

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

Issue 1045173003: Fix blacklisting for desktop infobars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 4dd0b4d0684bfc28cbef21d55f54bc27df12a138..e28932da9f668fcd1e105fe20be9edc28c32412b 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.h
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.h
@@ -40,6 +40,16 @@ class SavePasswordInfoBarDelegate : public ConfirmInfoBarDelegate {
const std::string& uma_histogram_suffix,
password_manager::CredentialSourceType source_type);
+#if defined(UNIT_TEST)
vabr (Chromium) 2015/04/02 13:32:16 As an alternative -- what about making the SavePas
melandory 2015/04/02 15:49:17 I'll add TODO.
+ static scoped_ptr<ConfirmInfoBarDelegate> Create(
+ scoped_ptr<password_manager::PasswordFormManager> form_to_save,
+ const std::string& uma_histogram_suffix,
vabr (Chromium) 2015/04/02 13:32:16 I don't think you need this argument, just hard-co
melandory 2015/04/02 15:49:17 Done.
+ password_manager::CredentialSourceType source_type) {
+ return scoped_ptr<ConfirmInfoBarDelegate>(new SavePasswordInfoBarDelegate(
+ form_to_save.Pass(), uma_histogram_suffix, source_type));
+ }
+#endif
+
~SavePasswordInfoBarDelegate() override;
// If the infobar was triggered by the Credential management API, then on

Powered by Google App Engine
This is Rietveld 408576698