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

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

Issue 868253005: AffiliationBackend: Implement the better part of on-demand fetching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing override. Created 5 years, 11 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/fake_affiliation_fetcher.cc
diff --git a/components/password_manager/core/browser/fake_affiliation_fetcher.cc b/components/password_manager/core/browser/fake_affiliation_fetcher.cc
index 0f78e1f1abcc23817ec9f579c4f4a51fd07c0957..cb96fa73e9ff93e3dc037f00bb443a34b019b89b 100644
--- a/components/password_manager/core/browser/fake_affiliation_fetcher.cc
+++ b/components/password_manager/core/browser/fake_affiliation_fetcher.cc
@@ -39,13 +39,18 @@ password_manager::ScopedFakeAffiliationFetcherFactory::
AffiliationFetcher::SetFactoryForTesting(nullptr);
}
-FakeAffiliationFetcher* ScopedFakeAffiliationFetcherFactory::GetNextFetcher() {
+FakeAffiliationFetcher* ScopedFakeAffiliationFetcherFactory::PopNextFetcher() {
DCHECK(!pending_fetchers_.empty());
FakeAffiliationFetcher* first = pending_fetchers_.front();
pending_fetchers_.pop();
return first;
}
+FakeAffiliationFetcher* ScopedFakeAffiliationFetcherFactory::PeekNextFetcher() {
+ DCHECK(!pending_fetchers_.empty());
+ return pending_fetchers_.front();
+}
+
AffiliationFetcher* ScopedFakeAffiliationFetcherFactory::CreateInstance(
net::URLRequestContextGetter* request_context_getter,
const std::vector<FacetURI>& facet_ids,

Powered by Google App Engine
This is Rietveld 408576698