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

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

Issue 947563002: Add prefetch support to AffiliationBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'stale' accessor, cleaned up timelines for tests, extended/fixed some tests. Created 5 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 b47ec07d533f1caf038af1736b00b6905979a92a..23ed54def3eaec80f3d4fa5c58215ef8f974de83 100644
--- a/components/password_manager/core/browser/affiliation_service.cc
+++ b/components/password_manager/core/browser/affiliation_service.cc
@@ -56,18 +56,14 @@ void AffiliationService::GetAffiliations(
result_callback, base::ThreadTaskRunnerHandle::Get()));
}
-AffiliationService::CancelPrefetchingHandle AffiliationService::Prefetch(
- const FacetURI& facet_uri,
- const base::Time& keep_fresh_until) {
+void AffiliationService::Prefetch(const FacetURI& facet_uri,
+ const base::Time& keep_fresh_until) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(backend_);
backend_task_runner_->PostTask(
FROM_HERE,
base::Bind(&AffiliationBackend::Prefetch, base::Unretained(backend_),
facet_uri, keep_fresh_until));
- return base::Bind(&AffiliationService::CancelPrefetch,
- weak_ptr_factory_.GetWeakPtr(), facet_uri,
- keep_fresh_until);
}
void AffiliationService::CancelPrefetch(const FacetURI& facet_uri,

Powered by Google App Engine
This is Rietveld 408576698