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

Unified Diff: mandoline/services/updater/updater_impl.cc

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « content/test/weburl_loader_mock.cc ('k') | mandoline/ui/desktop_ui/browser_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/services/updater/updater_impl.cc
diff --git a/mandoline/services/updater/updater_impl.cc b/mandoline/services/updater/updater_impl.cc
index 57614011f3dbd1768f6ef6d2a179258721bce5a4..bc0c05387744a565ed08834d49aad94f58492908 100644
--- a/mandoline/services/updater/updater_impl.cc
+++ b/mandoline/services/updater/updater_impl.cc
@@ -31,7 +31,7 @@ void UpdaterImpl::GetPathForApp(
// integration with components/update_client.
base::FilePath shell_dir;
PathService::Get(base::DIR_MODULE, &shell_dir);
- const GURL as_url(url);
+ const GURL as_url(url.get());
const base::FilePath path = shell_dir.Append(base::FilePath::FromUTF8Unsafe(
as_url.path().substr(2, as_url.path().size() - 3) + ".mojo"));
callback.Run(path.AsUTF8Unsafe());
« no previous file with comments | « content/test/weburl_loader_mock.cc ('k') | mandoline/ui/desktop_ui/browser_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698