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

Unified Diff: components/web_view/frame.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
Index: components/web_view/frame.cc
diff --git a/components/web_view/frame.cc b/components/web_view/frame.cc
index aa957ba3e9ab2e64221ef1dcedd2ceab7b195da9..5cff9bfa56ee435d84c18c3170ed3ea758cc85e1 100644
--- a/components/web_view/frame.cc
+++ b/components/web_view/frame.cc
@@ -362,7 +362,7 @@ void Frame::StartNavigate(mojo::URLRequestPtr request) {
DVLOG(2) << "Frame::StartNavigate id=" << id_ << " url=" << request->url;
- const GURL requested_url(request->url);
+ const GURL requested_url(request->url.get());
base::TimeTicks navigation_start_time =
base::TimeTicks::FromInternalValue(request->originating_time_ticks);
tree_->delegate_->CanNavigateFrame(

Powered by Google App Engine
This is Rietveld 408576698