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

Unified Diff: extensions/shell/browser/shell_nacl_browser_delegate.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/renderer/user_script_injector.cc ('k') | google_apis/drive/drive_api_requests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_nacl_browser_delegate.cc
diff --git a/extensions/shell/browser/shell_nacl_browser_delegate.cc b/extensions/shell/browser/shell_nacl_browser_delegate.cc
index 88db0fd7407b8dd638c9b75cdb581372d3811723..e4c38896084a4b8d65a5942f74e682b6dae2b4d4 100644
--- a/extensions/shell/browser/shell_nacl_browser_delegate.cc
+++ b/extensions/shell/browser/shell_nacl_browser_delegate.cc
@@ -159,7 +159,7 @@ bool ShellNaClBrowserDelegate::MapUrlToLocalFilePath(
// handles a subset of the urls.
if (!use_blocking_api) {
if (file_url.SchemeIs(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;
@@ -169,7 +169,8 @@ bool ShellNaClBrowserDelegate::MapUrlToLocalFilePath(
// Check that the URL references a resource in the extension.
// NOTE: app_shell does not support shared modules.
- ExtensionResource resource = extension->GetResource(file_url.path());
+ ExtensionResource resource =
+ extension->GetResource(file_url.path().as_string());
if (resource.empty())
return false;
« no previous file with comments | « extensions/renderer/user_script_injector.cc ('k') | google_apis/drive/drive_api_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698