Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 3f65f354c154e4b87a7a033b43048d576a404096..4ff97ba38feb04f6993d01dd7b1cecbb42d7359b 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -37,6 +37,7 @@ |
#include "base/time/time.h" |
#include "base/values.h" |
#include "build/build_config.h" |
+#include "cc/base/switches.h" |
#include "chrome/browser/about_flags.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/browser_process_impl.h" |
@@ -601,7 +602,8 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() { |
new base::FieldTrialList(metrics->CreateEntropyProvider().release())); |
const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- if (command_line->HasSwitch(switches::kEnableBenchmarking)) |
+ if (command_line->HasSwitch(switches::kEnableBenchmarking) || |
+ command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)) |
Alexei Svitkine (slow)
2014/11/20 18:21:56
Nit: {}'s
oystein (OOO til 10th of July)
2014/11/20 22:55:45
Done.
|
base::FieldTrial::EnableBenchmarking(); |
// Ensure any field trials specified on the command line are initialized. |