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

Unified Diff: chrome/browser/password_manager/update_password_infobar_delegate.cc

Issue 1858513002: chrome/browser/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows -- revert unwanted change 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
« no previous file with comments | « chrome/browser/password_manager/update_password_infobar_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/password_manager/update_password_infobar_delegate.cc
diff --git a/chrome/browser/password_manager/update_password_infobar_delegate.cc b/chrome/browser/password_manager/update_password_infobar_delegate.cc
index 7044a3bae487403700cc18e28126e60c786a17a6..23d06e6aac8981ee92a9e1ec26a58066c346c1c6 100644
--- a/chrome/browser/password_manager/update_password_infobar_delegate.cc
+++ b/chrome/browser/password_manager/update_password_infobar_delegate.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/password_manager/update_password_infobar_delegate.h"
+#include "base/memory/ptr_util.h"
#include "base/numerics/safe_conversions.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
@@ -22,14 +23,14 @@
// static
void UpdatePasswordInfoBarDelegate::Create(
content::WebContents* web_contents,
- scoped_ptr<password_manager::PasswordFormManager> form_to_save) {
+ std::unique_ptr<password_manager::PasswordFormManager> form_to_save) {
const bool is_smartlock_branding_enabled =
password_bubble_experiment::IsSmartLockBrandingEnabled(
ProfileSyncServiceFactory::GetForProfile(
Profile::FromBrowserContext(web_contents->GetBrowserContext())));
InfoBarService::FromWebContents(web_contents)
- ->AddInfoBar(make_scoped_ptr(new UpdatePasswordInfoBar(
- make_scoped_ptr(new UpdatePasswordInfoBarDelegate(
+ ->AddInfoBar(base::WrapUnique(new UpdatePasswordInfoBar(
+ base::WrapUnique(new UpdatePasswordInfoBarDelegate(
web_contents, std::move(form_to_save),
is_smartlock_branding_enabled)))));
}
@@ -58,7 +59,7 @@ UpdatePasswordInfoBarDelegate::GetCurrentForms() const {
UpdatePasswordInfoBarDelegate::UpdatePasswordInfoBarDelegate(
content::WebContents* web_contents,
- scoped_ptr<password_manager::PasswordFormManager> form_to_update,
+ std::unique_ptr<password_manager::PasswordFormManager> form_to_update,
bool is_smartlock_branding_enabled)
: is_smartlock_branding_enabled_(is_smartlock_branding_enabled) {
// TODO(melandory): Add histograms, crbug.com/577129
« no previous file with comments | « chrome/browser/password_manager/update_password_infobar_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698