| 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..c2db01698fc45a3d75b5b192c473d47238b63c2b 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,8 +602,10 @@ 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)) {
|
| base::FieldTrial::EnableBenchmarking();
|
| + }
|
|
|
| // Ensure any field trials specified on the command line are initialized.
|
| if (command_line->HasSwitch(switches::kForceFieldTrials)) {
|
|
|