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

Unified Diff: chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.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
« no previous file with comments | « no previous file | chrome/browser/memory_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
diff --git a/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc b/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
index 0628eef4d3e49c92bd1d70f4da64f4993812a9b4..a06ce17093bd5daee69f46d1fc7740b3fc68a5a8 100644
--- a/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
+++ b/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
@@ -36,7 +36,7 @@
#include "components/dom_distiller/core/url_utils.h"
#include "components/leveldb_proto/testing/fake_db.h"
#include "components/strings/grit/components_strings.h"
-#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/url_data_source.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
@@ -227,9 +227,9 @@ void DomDistillerViewerSourceBrowserTest::ViewSingleDistilledPage(
browser()->tab_strip_model()->GetActiveWebContents();
ASSERT_TRUE(contents_after_nav != NULL);
EXPECT_EQ(url, contents_after_nav->GetLastCommittedURL());
- const content::RenderViewHost* render_view_host =
- contents_after_nav->GetRenderViewHost();
- EXPECT_EQ(0, render_view_host->GetEnabledBindings());
+ const content::RenderFrameHost* render_frame_host =
+ contents_after_nav->GetMainFrame();
+ EXPECT_EQ(0, render_frame_host->GetEnabledBindings());
EXPECT_EQ(expected_mime_type, contents_after_nav->GetContentsMimeType());
}
« no previous file with comments | « no previous file | chrome/browser/memory_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698