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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 2515823002: Remove WebContents::GetRoutingID(). (Closed)
Patch Set: added a TODO for the external protocol bug 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/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 8e70cd60e91e6a41b20c69ef0274268b5781b76f..ed5fd3ea2f9d926433cdd18d70ddd159b1ce144f 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -42,6 +42,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/render_frame_host.h"
+#include "content/public/browser/render_view_host.h"
#include "content/public/browser/screen_orientation_provider.h"
#include "content/public/browser/ssl_host_state_delegate.h"
#include "content/public/browser/web_contents.h"
@@ -1409,7 +1410,7 @@ void ContentViewCoreImpl::ExtractSmartClipData(JNIEnv* env,
static_cast<int>((height > 0 && height < dpi_scale()) ?
1 : (int)(height / dpi_scale())));
GetWebContents()->Send(new ViewMsg_ExtractSmartClipData(
- GetWebContents()->GetRoutingID(), rect));
+ GetWebContents()->GetRenderViewHost()->GetRoutingID(), rect));
}
jint ContentViewCoreImpl::GetCurrentRenderProcessId(

Powered by Google App Engine
This is Rietveld 408576698