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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1297993005: Cleanup the remaining references to source_view_id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « content/common/frame_messages.h ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 05e6ad6f8c49c076f229b9ebe655ec73dbc4ad97..6acc43535b3a23f2f1cc58edb3bab8d08b0ecda0 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1649,15 +1649,7 @@ void RenderFrameImpl::OnPostMessageEvent(
const FrameMsg_PostMessage_Params& params) {
// Find the source frame if it exists.
WebFrame* source_frame = NULL;
- if (params.source_view_routing_id != MSG_ROUTING_NONE) {
- // Support a legacy postMessage path for specifying a source RenderView;
- // this is currently used when sending messages to Android WebView.
- // TODO(alexmos): This path can be removed once crbug.com/473258 is fixed.
- RenderViewImpl* source_view =
- RenderViewImpl::FromRoutingID(params.source_view_routing_id);
- if (source_view)
- source_frame = source_view->webview()->mainFrame();
- } else if (params.source_routing_id != MSG_ROUTING_NONE) {
+ if (params.source_routing_id != MSG_ROUTING_NONE) {
RenderFrameProxy* source_proxy =
RenderFrameProxy::FromRoutingID(params.source_routing_id);
if (source_proxy) {
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698