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

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

Issue 2515823002: Remove WebContents::GetRoutingID(). (Closed)
Patch Set: add render_view_host.h include in resource_dispatcher_host_unittest.cc 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
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/renderer/visual_state_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « content/public/browser/web_contents.h ('k') | content/renderer/visual_state_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698