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

Unified Diff: components/web_view/pending_web_view_load.cc

Issue 1350223005: mandoline: Make sure omnibox gets updated when navigating back/forwards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot.merge Created 5 years, 3 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 | « components/web_view/pending_web_view_load.h ('k') | components/web_view/public/interfaces/web_view.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_view/pending_web_view_load.cc
diff --git a/components/web_view/pending_web_view_load.cc b/components/web_view/pending_web_view_load.cc
index eca81e46eb0f333662ac06e12388e0edc142cc2a..54fa39b54afdf8930f8804286ce56a1311b992b9 100644
--- a/components/web_view/pending_web_view_load.cc
+++ b/components/web_view/pending_web_view_load.cc
@@ -18,6 +18,7 @@ PendingWebViewLoad::~PendingWebViewLoad() {}
void PendingWebViewLoad::Init(mojo::URLRequestPtr request) {
DCHECK(!frame_connection_);
+ pending_url_ = GURL(request->url);
frame_connection_.reset(new FrameConnection);
frame_connection_->Init(web_view_->app_, request.Pass(),
base::Bind(&PendingWebViewLoad::OnGotContentHandlerID,
@@ -27,7 +28,7 @@ void PendingWebViewLoad::Init(mojo::URLRequestPtr request) {
void PendingWebViewLoad::OnGotContentHandlerID() {
is_content_handler_id_valid_ = true;
if (web_view_->root_)
- web_view_->OnLoad();
+ web_view_->OnLoad(pending_url_);
// The else case is handled by WebViewImpl when it gets the View (|root_|).
}
« no previous file with comments | « components/web_view/pending_web_view_load.h ('k') | components/web_view/public/interfaces/web_view.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698