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

Unified Diff: components/password_manager/core/browser/affiliation_service.cc

Issue 1852093002: components/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and revert an accidental .proto change Created 4 years, 9 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/core/browser/affiliation_service.cc
diff --git a/components/password_manager/core/browser/affiliation_service.cc b/components/password_manager/core/browser/affiliation_service.cc
index 3d55d5f6abec58dc116553cab2afb2e9b5f5e289..55ea2aea1d487ac475a974f923d184f677cad995 100644
--- a/components/password_manager/core/browser/affiliation_service.cc
+++ b/components/password_manager/core/browser/affiliation_service.cc
@@ -8,6 +8,7 @@
#include "base/bind_helpers.h"
#include "base/files/file_path.h"
#include "base/location.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "base/time/default_clock.h"
@@ -39,10 +40,10 @@ void AffiliationService::Initialize(
DCHECK(!backend_);
backend_ =
new AffiliationBackend(request_context_getter, backend_task_runner_,
- make_scoped_ptr(new base::DefaultClock),
- make_scoped_ptr(new base::DefaultTickClock));
+ base::WrapUnique(new base::DefaultClock),
+ base::WrapUnique(new base::DefaultTickClock));
- scoped_ptr<base::TickClock> tick_clock(new base::DefaultTickClock);
+ std::unique_ptr<base::TickClock> tick_clock(new base::DefaultTickClock);
backend_task_runner_->PostTask(
FROM_HERE, base::Bind(&AffiliationBackend::Initialize,
base::Unretained(backend_), db_path));

Powered by Google App Engine
This is Rietveld 408576698