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

Unified Diff: ios/chrome/browser/passwords/ios_chrome_password_manager_infobar_delegate.h

Issue 2900693002: [Password Manager] Convert |pending_login_managers_| to an array of scoped_refptr (Closed)
Patch Set: Rebase Created 3 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: ios/chrome/browser/passwords/ios_chrome_password_manager_infobar_delegate.h
diff --git a/ios/chrome/browser/passwords/ios_chrome_password_manager_infobar_delegate.h b/ios/chrome/browser/passwords/ios_chrome_password_manager_infobar_delegate.h
index afc444a499807753e2c4be23f193ce35b937f0bf..d85fd604d42eedc4baeb875205b1dd2a375687f6 100644
--- a/ios/chrome/browser/passwords/ios_chrome_password_manager_infobar_delegate.h
+++ b/ios/chrome/browser/passwords/ios_chrome_password_manager_infobar_delegate.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/password_manager/core/browser/password_manager_metrics_util.h"
@@ -26,7 +27,7 @@ class IOSChromePasswordManagerInfoBarDelegate : public ConfirmInfoBarDelegate {
protected:
IOSChromePasswordManagerInfoBarDelegate(
bool is_smart_lock_branding_enabled,
- std::unique_ptr<password_manager::PasswordFormManager> form_manager);
+ scoped_refptr<password_manager::PasswordFormManager> form_manager);
password_manager::PasswordFormManager* form_to_save() const {
return form_to_save_.get();
@@ -50,7 +51,7 @@ class IOSChromePasswordManagerInfoBarDelegate : public ConfirmInfoBarDelegate {
// The password_manager::PasswordFormManager managing the form we're asking
// the user about, and should save as per their decision.
- std::unique_ptr<password_manager::PasswordFormManager> form_to_save_;
+ scoped_refptr<password_manager::PasswordFormManager> form_to_save_;
// Used to track the results we get from the info bar.
password_manager::metrics_util::UIDismissalReason infobar_response_;

Powered by Google App Engine
This is Rietveld 408576698