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

Unified Diff: components/variations/variations_http_header_provider.h

Issue 2182553002: Add other variations (with ids) for NTPSnippets to chrome://flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alexei's comment #5 + fix a bug Created 4 years, 5 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/variations_http_header_provider.h
diff --git a/components/variations/variations_http_header_provider.h b/components/variations/variations_http_header_provider.h
index b92daca3a549a66626793d67aeca3a0a2012ed33..349fea9951cda61c69562b3cca81db02e030925d 100644
--- a/components/variations/variations_http_header_provider.h
+++ b/components/variations/variations_http_header_provider.h
@@ -41,12 +41,19 @@ class VariationsHttpHeaderProvider : public base::FieldTrialList::Observer,
// a leading and trailing space, e.g. " 123 234 345 ".
std::string GetVariationsString();
+ // Forces the list of |variation_ids| (which will be modified by adding the
+ // comma-separated |command_line_variation_ids|). This is a wrapper function
+ // around SetDefaultVariationIds.
+ bool ForceVariationIds(
+ const std::string& command_line_variation_ids,
+ std::vector<std::string>* variation_ids);
+
// Sets *additional* variation ids and trigger variation ids to be encoded in
- // the X-Client-Data request header. This is intended for development use to
- // force a server side experiment id. |variation_ids| should be a
- // comma-separated string of numeric experiment ids. If an id is prefixed
- // with "t" it will be treated as a trigger experiment id.
- bool SetDefaultVariationIds(const std::string& variation_ids);
+ // the X-Client-Data request header. This is intended for development use to
+ // force a server side experiment id. |variation_ids| should be a list of
+ // strings of numeric experiment ids. If an id is prefixed with "t" it will
+ // be treated as a trigger experiment id.
+ bool SetDefaultVariationIds(const std::vector<std::string>& variation_ids);
// Resets any cached state for tests.
void ResetForTesting();
« no previous file with comments | « components/variations/variations_associated_data.cc ('k') | components/variations/variations_http_header_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698