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

Unified Diff: content/browser/histogram_message_filter.cc

Issue 12389073: Collect tab timing information for use in telementry-based startup tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix telemetry tests with reference builds. Created 7 years, 7 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: content/browser/histogram_message_filter.cc
diff --git a/content/browser/histogram_message_filter.cc b/content/browser/histogram_message_filter.cc
index ac08af3bc16aaa8c202aced274a02086e764ea01..be6f85fcb57f3e1df36bed76d39f3e25107c3127 100644
--- a/content/browser/histogram_message_filter.cc
+++ b/content/browser/histogram_message_filter.cc
@@ -49,17 +49,17 @@ void HistogramMessageFilter::OnGetBrowserHistogram(
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
// Security: Only allow access to browser histograms when running in the
// context of a test.
- bool using_dom_controller =
+ bool using_stats_collection_controller =
CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDomAutomationController);
+ switches::kStatsCollectionController);
bool reduced_security =
CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kReduceSecurityForDomAutomationTests);
+ switches::kReduceSecurityForStatsCollectionTests);
- if (!using_dom_controller || !reduced_security) {
+ if (!using_stats_collection_controller || !reduced_security) {
LOG(ERROR) << "Attempt at reading browser histogram without specifying "
- << "--" << switches::kDomAutomationController << " and "
- << "--" << switches::kReduceSecurityForDomAutomationTests
+ << "--" << switches::kStatsCollectionController << " and "
+ << "--" << switches::kReduceSecurityForStatsCollectionTests
<< " switches.";
return;
}

Powered by Google App Engine
This is Rietveld 408576698