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

Unified Diff: components/autofill/content/renderer/password_generation_agent.cc

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_generation_agent.cc
diff --git a/components/autofill/content/renderer/password_generation_agent.cc b/components/autofill/content/renderer/password_generation_agent.cc
index dc29345c01f062326d1fee3bd8856c44739d7b70..2485c3d415514767ffbbfd6a2d541db1a90070c3 100644
--- a/components/autofill/content/renderer/password_generation_agent.cc
+++ b/components/autofill/content/renderer/password_generation_agent.cc
@@ -4,9 +4,10 @@
#include "components/autofill/content/renderer/password_generation_agent.h"
+#include <memory>
+
#include "base/command_line.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "components/autofill/content/common/autofill_messages.h"
#include "components/autofill/content/renderer/form_autofill_util.h"
#include "components/autofill/content/renderer/password_autofill_agent.h"
@@ -203,7 +204,7 @@ void PasswordGenerationAgent::FindPossibleGenerationForm() {
// If we can't get a valid PasswordForm, we skip this form because the
// the password won't get saved even if we generate it.
- scoped_ptr<PasswordForm> password_form(
+ std::unique_ptr<PasswordForm> password_form(
CreatePasswordFormFromWebForm(forms[i], nullptr, nullptr));
if (!password_form.get()) {
VLOG(2) << "Skipping form as it would not be saved";
@@ -471,7 +472,7 @@ void PasswordGenerationAgent::OnUserTriggeredGeneratePassword() {
return;
blink::WebFormElement form = last_focused_password_element_.form();
- scoped_ptr<PasswordForm> password_form;
+ std::unique_ptr<PasswordForm> password_form;
std::vector<blink::WebFormControlElement> control_elements;
if (!form.isNull()) {
password_form = CreatePasswordFormFromWebForm(form, nullptr, nullptr);
« no previous file with comments | « components/autofill/content/renderer/password_generation_agent.h ('k') | components/autofill/core/browser/address_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698