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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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: components/autofill/content/renderer/password_autofill_agent.h
diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h
index 864a075d62af0d5c48226889f339443b18564a10..6abe81053d620a2f9b9fbd0d97d2140a1e44c4fe 100644
--- a/components/autofill/content/renderer/password_autofill_agent.h
+++ b/components/autofill/content/renderer/password_autofill_agent.h
@@ -6,10 +6,10 @@
#define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_
#include <map>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill/content/renderer/password_form_conversion_utils.h"
#include "components/autofill/core/common/form_data_predictions.h"
@@ -202,7 +202,7 @@ class PasswordAutofillAgent : public content::RenderFrameObserver {
// Saves |password_form| in |provisionally_saved_form_|, as long as it
// satisfies |restriction|.
- void ProvisionallySavePassword(scoped_ptr<PasswordForm> password_form,
+ void ProvisionallySavePassword(std::unique_ptr<PasswordForm> password_form,
ProvisionallySaveRestriction restriction);
// Returns true if |provisionally_saved_form_| has enough information that
@@ -221,7 +221,7 @@ class PasswordAutofillAgent : public content::RenderFrameObserver {
// Set if the user might be submitting a password form on the current page,
// but the submit may still fail (i.e. doesn't pass JavaScript validation).
- scoped_ptr<PasswordForm> provisionally_saved_form_;
+ std::unique_ptr<PasswordForm> provisionally_saved_form_;
// Contains the most recent text that user typed or PasswordManager autofilled
// in input elements. Used for storing username/password before JavaScript

Powered by Google App Engine
This is Rietveld 408576698