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

Unified Diff: components/password_manager/core/browser/facet_manager.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/facet_manager.h
diff --git a/components/password_manager/core/browser/facet_manager.h b/components/password_manager/core/browser/facet_manager.h
index e445f05f780438b4f37f6d3cdfef836374afb34a..81c5fed94473a92b0d1d8e70287c8067bd0ee303 100644
--- a/components/password_manager/core/browser/facet_manager.h
+++ b/components/password_manager/core/browser/facet_manager.h
@@ -29,6 +29,8 @@ class FacetManagerHost;
// interface to provide shared functionality needed by all FacetManagers.
class FacetManager {
public:
+ using StrategyOnCacheMiss = AffiliationService::StrategyOnCacheMiss;
+
// Both the |backend| and |clock| must outlive this object.
FacetManager(const FacetURI& facet_uri,
FacetManagerHost* backend,
@@ -38,7 +40,7 @@ class FacetManager {
// Facet-specific implementations for methods in AffiliationService of the
// same name. See documentation in affiliation_service.h for details:
void GetAffiliations(
- bool cached_only,
+ StrategyOnCacheMiss cache_miss_strategy,
const AffiliationService::ResultCallback& callback,
const scoped_refptr<base::TaskRunner>& callback_task_runner);
void Prefetch(const base::Time& keep_fresh_until);

Powered by Google App Engine
This is Rietveld 408576698