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

Unified Diff: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: rebase Created 3 years, 11 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
Index: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
index 76f1651f04c1a1e3526e2a2cab493485d7a38259..06eb3e62cf4cbbedc3ed5956ad9576f6627a1319 100644
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
@@ -34,7 +34,6 @@
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
-#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "grit/components_strings.h"
@@ -144,9 +143,7 @@ void DomDistillerViewerSource::RequestViewerHandle::DidFinishNavigation(
if (expected_main_view_request) {
content::RenderFrameHost* render_frame_host =
navigation_handle->GetRenderFrameHost();
- content::RenderViewHost* render_view_host =
- render_frame_host->GetRenderViewHost();
- CHECK_EQ(0, render_view_host->GetEnabledBindings());
+ CHECK_EQ(0, render_frame_host->GetEnabledBindings());
// Add mojo service for JavaScript functionality. This is the receiving
// end of this particular service.
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.cc ('k') | content/browser/frame_host/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698