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

Unified Diff: components/password_manager/core/browser/affiliation_backend.h

Issue 1006813008: Introduce StrategyOnCacheMiss enum instead of |cached_only| boolean. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aff_integ_final
Patch Set: 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_backend.h
diff --git a/components/password_manager/core/browser/affiliation_backend.h b/components/password_manager/core/browser/affiliation_backend.h
index 29fb0283faa6b32b01d2fca82c97b432302c10bd..88dce8d6140201648236445b6115ff95353fa240 100644
--- a/components/password_manager/core/browser/affiliation_backend.h
+++ b/components/password_manager/core/browser/affiliation_backend.h
@@ -50,6 +50,8 @@ class AffiliationBackend : public FacetManagerHost,
public AffiliationFetcherDelegate,
public AffiliationFetchThrottlerDelegate {
public:
+ using StrategyOnCacheMiss = AffiliationService::StrategyOnCacheMiss;
+
// Constructs an instance that will use |request_context_getter| for all
// network requests, use |task_runner| for asynchronous tasks, and will rely
// on |time_source| and |time_tick_source| to tell the current time/ticks.
@@ -69,7 +71,7 @@ class AffiliationBackend : public FacetManagerHost,
// are not documented here again. See affiliation_service.h for details:
void GetAffiliations(
const FacetURI& facet_uri,
- bool cached_only,
+ StrategyOnCacheMiss cache_miss_strategy,
const AffiliationService::ResultCallback& callback,
const scoped_refptr<base::TaskRunner>& callback_task_runner);
void Prefetch(const FacetURI& facet_uri, const base::Time& keep_fresh_until);

Powered by Google App Engine
This is Rietveld 408576698