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

Unified Diff: components/variations/service/variations_service.h

Issue 2924983003: [Variations] Refactor all state used for study filtering into a container struct. (Closed)
Patch Set: A bit more cleanup Created 3 years, 6 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/variations/service/variations_service.h
diff --git a/components/variations/service/variations_service.h b/components/variations/service/variations_service.h
index 6e7033b69d94c725fdd7b1b8767b84064f0db5db..fdc7dad7fe11fcb3c167a75a0eafbce68bd25835 100644
--- a/components/variations/service/variations_service.h
+++ b/components/variations/service/variations_service.h
@@ -16,6 +16,7 @@
#include "base/observer_list.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
+#include "components/variations/client_filterable_state.h"
#include "components/variations/service/ui_string_overrider.h"
#include "components/variations/service/variations_service_client.h"
#include "components/variations/variations_request_scheduler.h"
@@ -236,6 +237,11 @@ class VariationsService
// so that it can be overridden by tests.
virtual bool LoadSeed(VariationsSeed* seed);
+ // Returns all of the client state used for filtering studies.
+ // As a side-effect, may update the stored permanent consistency country.
+ std::unique_ptr<ClientFilterableState> GetClientFilterableStateForVersion(
+ const base::Version& version);
+
// Sets the stored permanent country pref for this client.
void StorePermanentCountry(const base::Version& version,
const std::string& country);
« no previous file with comments | « components/variations/client_filterable_state.cc ('k') | components/variations/service/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698