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

Unified Diff: chrome/test/perf/startup_test.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/shutdown_test.cc ('k') | chrome/test/perf/tab_switching_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/startup_test.cc
diff --git a/chrome/test/perf/startup_test.cc b/chrome/test/perf/startup_test.cc
index 1d8243f992fb67ddf959bd607e91c2515f2bdcbb..0a07ce8e4554747d5e91a3ff4b767a06e47705a8 100644
--- a/chrome/test/perf/startup_test.cc
+++ b/chrome/test/perf/startup_test.cc
@@ -295,7 +295,8 @@ class StartupTest : public UIPerfTest {
"%.2f,",
timings[i].end_to_end.InMillisecondsF());
}
- perf_test::PrintResultList(graph, "", trace, times, "ms", important);
+ perf_test::PrintResultList(
+ graph, std::string(), trace, times, "ms", important);
if (num_tabs > 0) {
std::string name_base = trace;
@@ -305,15 +306,15 @@ class StartupTest : public UIPerfTest {
name = name_base + "-start";
for (int i = 0; i < numCycles; ++i)
base::StringAppendF(&times, "%.2f,", timings[i].first_start_ms);
- perf_test::PrintResultList(graph, "", name.c_str(), times, "ms",
- important);
+ perf_test::PrintResultList(
+ graph, std::string(), name.c_str(), times, "ms", important);
times.clear();
name = name_base + "-first";
for (int i = 0; i < numCycles; ++i)
base::StringAppendF(&times, "%.2f,", timings[i].first_stop_ms);
- perf_test::PrintResultList(graph, "", name.c_str(), times, "ms",
- important);
+ perf_test::PrintResultList(
+ graph, std::string(), name.c_str(), times, "ms", important);
if (nth_timed_tab > 0) {
// Display only the time necessary to load the first n tabs.
@@ -321,8 +322,8 @@ class StartupTest : public UIPerfTest {
name = name_base + "-" + base::IntToString(nth_timed_tab);
for (int i = 0; i < numCycles; ++i)
base::StringAppendF(&times, "%.2f,", timings[i].nth_tab_stop_ms);
- perf_test::PrintResultList(graph, "", name.c_str(), times, "ms",
- important);
+ perf_test::PrintResultList(
+ graph, std::string(), name.c_str(), times, "ms", important);
}
if (num_tabs > 1) {
@@ -331,8 +332,8 @@ class StartupTest : public UIPerfTest {
name = name_base + "-all";
for (int i = 0; i < numCycles; ++i)
base::StringAppendF(&times, "%.2f,", timings[i].last_stop_ms);
- perf_test::PrintResultList(graph, "", name.c_str(), times, "ms",
- important);
+ perf_test::PrintResultList(
+ graph, std::string(), name.c_str(), times, "ms", important);
}
}
}
« no previous file with comments | « chrome/test/perf/shutdown_test.cc ('k') | chrome/test/perf/tab_switching_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698