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

Unified Diff: mandoline/ui/desktop_ui/browser_manager.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 | « mandoline/services/updater/updater_impl.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/desktop_ui/browser_manager.cc
diff --git a/mandoline/ui/desktop_ui/browser_manager.cc b/mandoline/ui/desktop_ui/browser_manager.cc
index b36f428da2637c50fd1912ec545c45cf8b1da19c..cb54be136605c2c239818d0eb3ee2fe343e837ea 100644
--- a/mandoline/ui/desktop_ui/browser_manager.cc
+++ b/mandoline/ui/desktop_ui/browser_manager.cc
@@ -46,7 +46,7 @@ void BrowserManager::LaunchURL(const mojo::String& url) {
DCHECK(!browsers_.empty());
// TODO(fsamuel): Create a new Browser once we support multiple browser
// windows.
- (*browsers_.begin())->LoadURL(GURL(url));
+ (*browsers_.begin())->LoadURL(GURL(url.get()));
}
void BrowserManager::Initialize(mojo::ApplicationImpl* app) {
« no previous file with comments | « mandoline/services/updater/updater_impl.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698