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

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

Issue 2926833002: Revert of [Password Manager] Convert |pending_login_managers_| to an array of scoped_refptr (Closed)
Patch Set: Created 3 years, 6 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 d85fd604d42eedc4baeb875205b1dd2a375687f6..afc444a499807753e2c4be23f193ce35b937f0bf 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,7 +8,6 @@
#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"
@@ -27,7 +26,7 @@
protected:
IOSChromePasswordManagerInfoBarDelegate(
bool is_smart_lock_branding_enabled,
- scoped_refptr<password_manager::PasswordFormManager> form_manager);
+ std::unique_ptr<password_manager::PasswordFormManager> form_manager);
password_manager::PasswordFormManager* form_to_save() const {
return form_to_save_.get();
@@ -51,7 +50,7 @@
// The password_manager::PasswordFormManager managing the form we're asking
// the user about, and should save as per their decision.
- scoped_refptr<password_manager::PasswordFormManager> form_to_save_;
+ std::unique_ptr<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