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

Unified Diff: content/browser/gpu/gpu_memory_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 | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/browser/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_memory_test.cc
diff --git a/content/browser/gpu/gpu_memory_test.cc b/content/browser/gpu/gpu_memory_test.cc
index 36584c39305be4275651aef97c48a6140b9ef621..832b947bce581e1858e4e008941240aec91c836b 100644
--- a/content/browser/gpu/gpu_memory_test.cc
+++ b/content/browser/gpu/gpu_memory_test.cc
@@ -116,12 +116,8 @@ class GpuMemoryTest : public ContentBrowserTest {
js_call << mb_to_use;
js_call << ");";
std::string message;
- ASSERT_TRUE(
- ExecuteScriptInFrameAndExtractString(
- tab_to_load->web_contents(),
- "",
- js_call.str(),
- &message));
+ ASSERT_TRUE(ExecuteScriptInFrameAndExtractString(
+ tab_to_load->web_contents(), std::string(), js_call.str(), &message));
EXPECT_EQ("DONE_USE_GPU_MEMORY", message);
}
@@ -196,12 +192,8 @@ class GpuMemoryTest : public ContentBrowserTest {
" domAutomationController.send(\"DONE_RAF\");"
"})");
std::string message;
- ASSERT_TRUE(
- ExecuteScriptInFrameAndExtractString(
- (*it)->web_contents(),
- "",
- js_call,
- &message));
+ ASSERT_TRUE(ExecuteScriptInFrameAndExtractString(
+ (*it)->web_contents(), std::string(), js_call, &message));
EXPECT_EQ("DONE_RAF", message);
}
// TODO(ccameron): send an IPC from Browser -> Renderer (delay it until
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/browser/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698