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

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

Issue 1903593002: Allows to manually change the stored permanent country in Variations from the translate-internals d… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI polishing Created 4 years, 8 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 61c61731ac012ef0ef320991cc4f7ecc5ffc7de3..eb2b1d23ef79601da0fe31f7113e6c85a85d69c3 100644
--- a/components/variations/service/variations_service.h
+++ b/components/variations/service/variations_service.h
@@ -121,6 +121,12 @@ class VariationsService
// in the format of lowercase ISO 3166-1 alpha-2. Example: us, br, in
std::string GetStoredPermanentCountry();
+ // Forces an override of kVariationsPermanentConsistencyCountry. Returns true
+ // if the variable has been updated. Return false if the override country is
+ // the same as the stored variable, or if the update failed for any other
+ // reason.
+ bool ForceSetStoredPermanentCountry(const std::string& override_country);
+
// Exposed for testing.
static std::string GetDefaultVariationsServerURLForTesting();

Powered by Google App Engine
This is Rietveld 408576698