Index: chrome/common/pepper_flash.cc |
diff --git a/chrome/common/pepper_flash.cc b/chrome/common/pepper_flash.cc |
index a13b22106d54481b325765920984062494261e16..d938be203b21e1b7e17db4ac39428c34275c8621 100644 |
--- a/chrome/common/pepper_flash.cc |
+++ b/chrome/common/pepper_flash.cc |
@@ -4,8 +4,36 @@ |
#include "chrome/common/pepper_flash.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/metrics/field_trial.h" |
+ |
#include "ppapi/shared_impl/ppapi_permissions.h" |
+namespace { |
+ |
+const char* const kIOFieldTrialName = "FlapperIOThread"; |
+const char* const kPoolGroupName = "PoolThread"; |
+const char* const kFileGroupName = "FileThread"; |
+ |
+} // namespace |
+ |
+void ActivatePepperFlashThreadFieldTrial() { |
+ static bool activated = false; |
+ if (activated) |
+ return; |
+ |
+ activated = true; |
+ |
+ // The field trial will expire on Jan 1st, 2014. |
+ scoped_refptr<base::FieldTrial> trial( |
+ base::FieldTrialList::FactoryGetFieldTrial( |
+ kIOFieldTrialName, 1000, kPoolGroupName, 2014, 1, 1, |
+ NULL)); |
+ |
+ // 50% goes into the FILE thread group. |
+ trial->AppendGroup(kFileGroupName, 500); |
+} |
+ |
bool ConductingPepperFlashFieldTrial() { |
#if defined(OS_WIN) |
return true; |