Index: ios/chrome/browser/passwords/password_controller.mm |
diff --git a/ios/chrome/browser/passwords/password_controller.mm b/ios/chrome/browser/passwords/password_controller.mm |
index 2545cb32daa4731de8d79738b855fadfcc8b7946..c0150d3184e65295bef7327d2406f12297a5c549 100644 |
--- a/ios/chrome/browser/passwords/password_controller.mm |
+++ b/ios/chrome/browser/passwords/password_controller.mm |
@@ -118,7 +118,7 @@ enum class PasswordInfoBarType { SAVE, UPDATE }; |
// Displays infobar for |form| with |type|. If |type| is UPDATE, the user |
// is prompted to update the password. If |type| is SAVE, the user is prompted |
// to save the password. |
-- (void)showInfoBarForForm:(std::unique_ptr<PasswordFormManager>)form |
+- (void)showInfoBarForForm:(scoped_refptr<PasswordFormManager>)form |
infoBarType:(PasswordInfoBarType)type; |
@end |
@@ -642,14 +642,13 @@ bool GetPageURLAndCheckTrustLevel(web::WebState* web_state, GURL* page_url) { |
#pragma mark - PasswordManagerClientDelegate |
-- (void)showSavePasswordInfoBar: |
- (std::unique_ptr<PasswordFormManager>)formToSave { |
+- (void)showSavePasswordInfoBar:(scoped_refptr<PasswordFormManager>)formToSave { |
[self showInfoBarForForm:std::move(formToSave) |
infoBarType:PasswordInfoBarType::SAVE]; |
} |
- (void)showUpdatePasswordInfoBar: |
- (std::unique_ptr<PasswordFormManager>)formToUpdate { |
+ (scoped_refptr<PasswordFormManager>)formToUpdate { |
[self showInfoBarForForm:std::move(formToUpdate) |
infoBarType:PasswordInfoBarType::UPDATE]; |
} |
@@ -852,7 +851,7 @@ bool GetPageURLAndCheckTrustLevel(web::WebState* web_state, GURL* page_url) { |
#pragma mark - Private methods |
-- (void)showInfoBarForForm:(std::unique_ptr<PasswordFormManager>)form |
+- (void)showInfoBarForForm:(scoped_refptr<PasswordFormManager>)form |
infoBarType:(PasswordInfoBarType)type { |
if (!webStateObserverBridge_ || !webStateObserverBridge_->web_state()) |
return; |