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

Unified Diff: components/password_manager/content/browser/content_password_manager_driver_factory.cc

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (Closed)
Patch Set: rebase Created 3 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/password_manager/content/browser/content_password_manager_driver_factory.cc
diff --git a/components/password_manager/content/browser/content_password_manager_driver_factory.cc b/components/password_manager/content/browser/content_password_manager_driver_factory.cc
index eb9c1b119b918645b273dbc333881b89fc95d494..34ef2831dcec56179bdb4f937dc4771fd11c98be 100644
--- a/components/password_manager/content/browser/content_password_manager_driver_factory.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver_factory.cc
@@ -51,7 +51,7 @@ void ContentPasswordManagerDriverFactory::CreateForWebContents(
web_contents->SetUserData(
kContentPasswordManagerDriverFactoryWebContentsUserDataKey,
- new_factory.release());
+ std::move(new_factory));
}
ContentPasswordManagerDriverFactory::ContentPasswordManagerDriverFactory(

Powered by Google App Engine
This is Rietveld 408576698