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_; |