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

Unified Diff: content/shell/browser/layout_test/layout_test_browser_context.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 | « content/renderer/render_frame_impl.cc ('k') | extensions/browser/extension_navigation_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_browser_context.cc
diff --git a/content/shell/browser/layout_test/layout_test_browser_context.cc b/content/shell/browser/layout_test/layout_test_browser_context.cc
index e5adfbfba5968088cab3f767ce63dff18d45d5b4..b1ec40fed851e0d9a0c379e6ec6b5bcb7af2f189 100644
--- a/content/shell/browser/layout_test/layout_test_browser_context.cc
+++ b/content/shell/browser/layout_test/layout_test_browser_context.cc
@@ -67,7 +67,8 @@ class MojomProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler {
prefix = prefix.AppendASCII("gen");
- base::FilePath path = prefix.AppendASCII(url.path().substr(2) + ".js");
+ base::FilePath path =
+ prefix.AppendASCII(url.path().substr(2).as_string() + ".js");
if (path.ReferencesParent())
return nullptr;
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | extensions/browser/extension_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698