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

Unified Diff: chrome/common/extensions/extension_set.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
Index: chrome/common/extensions/extension_set.cc
diff --git a/chrome/common/extensions/extension_set.cc b/chrome/common/extensions/extension_set.cc
index 84872b8ab381505934cbc827f2e66cc4df2e75a8..8b68fb6aeef376d02e44e52b3fe5b281e61c87f9 100644
--- a/chrome/common/extensions/extension_set.cc
+++ b/chrome/common/extensions/extension_set.cc
@@ -77,11 +77,11 @@ std::string ExtensionSet::GetExtensionOrAppIDByURL(
DCHECK(!info.origin().isNull());
if (info.url().SchemeIs(extensions::kExtensionScheme))
- return info.origin().isUnique() ? "" : info.url().host();
+ return info.origin().isUnique() ? std::string() : info.url().host();
const Extension* extension = GetExtensionOrAppByURL(info);
if (!extension)
- return "";
+ return std::string();
return extension->id();
}
« no previous file with comments | « chrome/common/extensions/extension_localization_peer_unittest.cc ('k') | chrome/common/extensions/extension_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698