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

Unified Diff: chrome/common/content_settings_pattern.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/common/content_settings_helper.cc ('k') | chrome/common/content_settings_pattern_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/content_settings_pattern.cc
diff --git a/chrome/common/content_settings_pattern.cc b/chrome/common/content_settings_pattern.cc
index 9153de66ae7d151c95eb51c4def98cfb6a7b6a87..ee023120e35ca554716a0fc5591590fb4bcc4a4a 100644
--- a/chrome/common/content_settings_pattern.cc
+++ b/chrome/common/content_settings_pattern.cc
@@ -26,7 +26,7 @@ std::string GetDefaultPort(const std::string& scheme) {
return "80";
if (scheme == chrome::kHttpsScheme)
return "443";
- return "";
+ return std::string();
}
// Returns true if |sub_domain| is a sub domain or equls |domain|. E.g.
@@ -501,7 +501,7 @@ const std::string ContentSettingsPattern::ToString() const {
if (IsValid())
return content_settings::PatternParser::ToString(parts_);
else
- return "";
+ return std::string();
}
ContentSettingsPattern::Relation ContentSettingsPattern::Compare(
« no previous file with comments | « chrome/common/content_settings_helper.cc ('k') | chrome/common/content_settings_pattern_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698