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

Unified Diff: content/public/browser/web_contents_observer.cc

Issue 2515823002: Remove WebContents::GetRoutingID(). (Closed)
Patch Set: rebased 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
Index: content/public/browser/web_contents_observer.cc
diff --git a/content/public/browser/web_contents_observer.cc b/content/public/browser/web_contents_observer.cc
index 1e705f865275f7afcb3b0c00e2a9abf1a3d1ad97..01d158d38d1bfb428b1a855ef5ee344affa18000 100644
--- a/content/public/browser/web_contents_observer.cc
+++ b/content/public/browser/web_contents_observer.cc
@@ -64,7 +64,7 @@ int WebContentsObserver::routing_id() const {
if (!web_contents_)
return MSG_ROUTING_NONE;
- return web_contents_->GetRoutingID();
+ return web_contents_->GetRenderViewHost()->GetRoutingID();
}
void WebContentsObserver::ResetWebContents() {

Powered by Google App Engine
This is Rietveld 408576698