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

Unified Diff: ios/chrome/browser/passwords/password_generation_agent.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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/password_generation_agent.mm
diff --git a/ios/chrome/browser/passwords/password_generation_agent.mm b/ios/chrome/browser/passwords/password_generation_agent.mm
index eeb389c917a8cd45a826be14bd6d6f36278f3c9b..7f5b1ba79dabbb4a41b530f1d1749c87d84649c0 100644
--- a/ios/chrome/browser/passwords/password_generation_agent.mm
+++ b/ios/chrome/browser/passwords/password_generation_agent.mm
@@ -121,7 +121,7 @@ bool IsTextField(const autofill::FormFieldData& field) {
@implementation PasswordGenerationAgent {
// Bridge to observe the web state from Objective-C.
- scoped_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
+ std::unique_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
// The origin URLs of forms on the current page that contain account creation
// forms as reported by autofill.
@@ -132,13 +132,13 @@ bool IsTextField(const autofill::FormFieldData& field) {
std::vector<GURL> _allowedGenerationFormOrigins;
// Stores the account creation form we detected on the page.
- scoped_ptr<autofill::PasswordForm> _possibleAccountCreationForm;
+ std::unique_ptr<autofill::PasswordForm> _possibleAccountCreationForm;
// Password fields found in |_possibleAccountCreationForm|.
std::vector<autofill::FormFieldData> _passwordFields;
// The password field that triggers the password generation UI.
- scoped_ptr<autofill::FormFieldData> _passwordGenerationField;
+ std::unique_ptr<autofill::FormFieldData> _passwordGenerationField;
// Wrapper for suggestion JavaScript. Used for form navigation.
base::scoped_nsobject<JsSuggestionManager> _JSSuggestionManager;

Powered by Google App Engine
This is Rietveld 408576698