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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 744483002: Setting --enable-gpu-benchmarking should force all Finch trials to default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698