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

Unified Diff: chrome/browser/password_manager/save_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
Index: chrome/browser/password_manager/save_password_infobar_delegate.cc
diff --git a/chrome/browser/password_manager/save_password_infobar_delegate.cc b/chrome/browser/password_manager/save_password_infobar_delegate.cc
index fe309bbe3831e2c0c1ca7a0969985395492c99f0..e1dc8c8248b5c14177d180d5fa31bb1065264314 100644
--- a/chrome/browser/password_manager/save_password_infobar_delegate.cc
+++ b/chrome/browser/password_manager/save_password_infobar_delegate.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -25,7 +26,7 @@
// static
void SavePasswordInfoBarDelegate::Create(
content::WebContents* web_contents,
- scoped_ptr<password_manager::PasswordFormManager> form_to_save) {
+ std::unique_ptr<password_manager::PasswordFormManager> form_to_save) {
Profile* profile =
Profile::FromBrowserContext(web_contents->GetBrowserContext());
sync_driver::SyncService* sync_service =
@@ -37,7 +38,7 @@ void SavePasswordInfoBarDelegate::Create(
password_bubble_experiment::ShouldShowSavePromptFirstRunExperience(
sync_service, profile->GetPrefs());
InfoBarService::FromWebContents(web_contents)
- ->AddInfoBar(CreateSavePasswordInfoBar(make_scoped_ptr(
+ ->AddInfoBar(CreateSavePasswordInfoBar(base::WrapUnique(
new SavePasswordInfoBarDelegate(web_contents, std::move(form_to_save),
is_smartlock_branding_enabled,
should_show_first_run_experience))));
@@ -56,7 +57,7 @@ SavePasswordInfoBarDelegate::~SavePasswordInfoBarDelegate() {
SavePasswordInfoBarDelegate::SavePasswordInfoBarDelegate(
content::WebContents* web_contents,
- scoped_ptr<password_manager::PasswordFormManager> form_to_save,
+ std::unique_ptr<password_manager::PasswordFormManager> form_to_save,
bool is_smartlock_branding_enabled,
bool should_show_first_run_experience)
: PasswordManagerInfoBarDelegate(),

Powered by Google App Engine
This is Rietveld 408576698