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

Unified Diff: extensions/browser/info_map.cc

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 years, 1 month 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 | « extensions/browser/extension_protocols.cc ('k') | extensions/browser/url_request_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/info_map.cc
diff --git a/extensions/browser/info_map.cc b/extensions/browser/info_map.cc
index c97832ca4b29d8d86b1bff953726ab4a9c272c65..96558dc97a987039376095602c62525395b2e758 100644
--- a/extensions/browser/info_map.cc
+++ b/extensions/browser/info_map.cc
@@ -167,7 +167,7 @@ bool InfoMap::MapUrlToLocalFilePath(const GURL& file_url,
// handles a subset of the urls.
if (!use_blocking_api) {
if (file_url.SchemeIs(extensions::kExtensionScheme)) {
- std::string path = file_url.path();
+ std::string path = file_url.path().as_string();
base::TrimString(path, "/", &path); // Remove first slash
*file_path = extension->path().AppendASCII(path);
return true;
@@ -175,7 +175,7 @@ bool InfoMap::MapUrlToLocalFilePath(const GURL& file_url,
return false;
}
- std::string path = file_url.path();
+ std::string path = file_url.path().as_string();
ExtensionResource resource;
if (SharedModuleInfo::IsImportedPath(path)) {
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | extensions/browser/url_request_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698