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

Unified Diff: chrome/common/renderer_configuration.mojom

Issue 2642263002: Convert ChromeViewMsg_SetFieldTrialGroup to use mojo. (Closed)
Patch Set: Convert ChromeViewMsg_SetFieldTrialGroup to use mojo. Created 3 years, 11 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: chrome/common/renderer_configuration.mojom
diff --git a/chrome/common/renderer_configuration.mojom b/chrome/common/renderer_configuration.mojom
index 851167c743aba7cd62f0bb32fc96680069d4674b..276079ac513eee76aed5982c2d5e82c981281f82 100644
--- a/chrome/common/renderer_configuration.mojom
+++ b/chrome/common/renderer_configuration.mojom
@@ -15,4 +15,21 @@ interface RendererConfiguration {
// Set the content setting rules stored by the renderer.
SetContentSettingRules(
content_settings.mojom.RendererContentSettingRules rules);
+
+ // Tells the renderer to create a FieldTrial, and by using a 100% probability
+ // for the FieldTrial, forces the FieldTrial to have assigned group name.
+ //
+ // Example trial_name / group_name pairs are:
+ // - "BrowserScheduler" / "Default"
+ // - "QUIC" / "Enabled"
+ // - "SimpleCacheTrial" / "ExperimentYes"
+ // - "WebFontsInterventionV2" / "Enabled-slow2g"
+ // - "MarkNonSecureAs" / "show-non-secure-passwords-cc-ui"
+ SetFieldTrialGroup(string trial_name, string group_name);
+};
+
+// Records field trial activations from the renderers.
+interface FieldTrialRecorder {
+ // Indicates that a field trial has been activated.
+ FieldTrialActivated(string trial_name);
};

Powered by Google App Engine
This is Rietveld 408576698