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

Unified Diff: chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-run on ToT, revert third_party changes and fix vexing parses. 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
Index: chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc
diff --git a/chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc b/chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc
index 034655f4368ec431c508a6dbdbdf80aa9ab572e6..bba4b5c97168b2c57c6677f6287320d5e9e5bb03 100644
--- a/chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc
+++ b/chrome/renderer/safe_browsing/malware_dom_details_browsertest.cc
@@ -97,7 +97,7 @@ TEST_F(MalwareDOMDetailsTest, Everything) {
}
{ // >50 subframes, to verify kMaxNodes.
- std::string html = "";
+ std::string html = std::string();
for (int i = 0; i < 55; ++i) {
// The iframe contents is just a number.
GURL iframe_url(base::StringPrintf("%s%d", urlprefix, i));
@@ -113,7 +113,7 @@ TEST_F(MalwareDOMDetailsTest, Everything) {
}
{ // A page with >50 scripts, to verify kMaxNodes.
- std::string html = "";
+ std::string html = std::string();
for (int i = 0; i < 55; ++i) {
// The iframe contents is just a number.
GURL script_url(base::StringPrintf("%s%d", urlprefix, i));

Powered by Google App Engine
This is Rietveld 408576698