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

Unified Diff: components/password_manager/core/browser/affiliation_backend.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_backend.cc
diff --git a/components/password_manager/core/browser/affiliation_backend.cc b/components/password_manager/core/browser/affiliation_backend.cc
index bd258f27e8118b894631f9342d6a9bb0d2390d16..f7881bf8f579af4017a7f2af4549fbb78f426aa8 100644
--- a/components/password_manager/core/browser/affiliation_backend.cc
+++ b/components/password_manager/core/browser/affiliation_backend.cc
@@ -27,8 +27,8 @@ namespace password_manager {
AffiliationBackend::AffiliationBackend(
const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
- scoped_ptr<base::Clock> time_source,
- scoped_ptr<base::TickClock> time_tick_source)
+ std::unique_ptr<base::Clock> time_source,
+ std::unique_ptr<base::TickClock> time_tick_source)
: request_context_getter_(request_context_getter),
task_runner_(task_runner),
clock_(std::move(time_source)),
@@ -122,7 +122,7 @@ void AffiliationBackend::DeleteCache(const base::FilePath& db_path) {
FacetManager* AffiliationBackend::GetOrCreateFacetManager(
const FacetURI& facet_uri) {
if (!facet_managers_.contains(facet_uri)) {
- scoped_ptr<FacetManager> new_manager(
+ std::unique_ptr<FacetManager> new_manager(
new FacetManager(facet_uri, this, clock_.get()));
facet_managers_.add(facet_uri, std::move(new_manager));
}
@@ -178,7 +178,7 @@ void AffiliationBackend::RequestNotificationAtTime(const FacetURI& facet_uri,
}
void AffiliationBackend::OnFetchSucceeded(
- scoped_ptr<AffiliationFetcherDelegate::Result> result) {
+ std::unique_ptr<AffiliationFetcherDelegate::Result> result) {
DCHECK(thread_checker_ && thread_checker_->CalledOnValidThread());
fetcher_.reset();
@@ -283,7 +283,7 @@ void AffiliationBackend::ReportStatistics(size_t requested_facet_uri_count) {
}
void AffiliationBackend::SetThrottlerForTesting(
- scoped_ptr<AffiliationFetchThrottler> throttler) {
+ std::unique_ptr<AffiliationFetchThrottler> throttler) {
throttler_ = std::move(throttler);
}

Powered by Google App Engine
This is Rietveld 408576698