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

Unified Diff: chrome/browser/extensions/extension_protocols.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/browser/extensions/extension_protocols.cc
diff --git a/chrome/browser/extensions/extension_protocols.cc b/chrome/browser/extensions/extension_protocols.cc
index 049d81386304d992faea0e609686f2467c4df7cd..503b2adc9c38c06c97e8a929b329bb2584c7b14d 100644
--- a/chrome/browser/extensions/extension_protocols.cc
+++ b/chrome/browser/extensions/extension_protocols.cc
@@ -320,7 +320,8 @@ bool AllowExtensionResourceLoad(net::URLRequest* request,
// some extensions want to be able to do things like create their own
// launchers.
std::string resource_root_relative_path =
- request->url().path().empty() ? "" : request->url().path().substr(1);
+ request->url().path().empty() ? std::string()
+ : request->url().path().substr(1);
if (extension->is_hosted_app() &&
!extensions::IconsInfo::GetIcons(extension)
.ContainsPath(resource_root_relative_path)) {
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698