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

Unified Diff: chrome/test/perf/rendering/latency_tests.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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
« no previous file with comments | « chrome/test/perf/perf_test.cc ('k') | chrome/test/perf/rendering/throughput_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/rendering/latency_tests.cc
diff --git a/chrome/test/perf/rendering/latency_tests.cc b/chrome/test/perf/rendering/latency_tests.cc
index 70939fd2755878b90f6cfbe257d400f8b64714e3..fdd00d77ecae94a7e0c32b10fede9f143a980704 100644
--- a/chrome/test/perf/rendering/latency_tests.cc
+++ b/chrome/test/perf/rendering/latency_tests.cc
@@ -153,7 +153,7 @@ class LatencyTest
return "software";
default:
NOTREACHED() << "invalid mode";
- return "";
+ return std::string();
}
}
@@ -586,8 +586,12 @@ double LatencyTest::CalculateLatency() {
std::string trace_name = GetTraceName(test_flags_);
std::string mean_and_error = base::StringPrintf("%f,%f", mean_latency,
mean_error);
- perf_test::PrintResultMeanAndError(GetModeString(), "", trace_name,
- mean_and_error, "frames", true);
+ perf_test::PrintResultMeanAndError(GetModeString(),
+ std::string(),
+ trace_name,
+ mean_and_error,
+ "frames",
+ true);
return mean_latency;
}
« no previous file with comments | « chrome/test/perf/perf_test.cc ('k') | chrome/test/perf/rendering/throughput_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698