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

Unified Diff: chrome/browser/memory_details.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: chrome/browser/memory_details.cc
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
index 0da07a251f998fc19f0037e94486bf82aa98501a..17ffc26391fb50d327917d0ebfa3014a1dd72e67 100644
--- a/chrome/browser/memory_details.cc
+++ b/chrome/browser/memory_details.cc
@@ -23,6 +23,7 @@
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
+#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host.h"
@@ -297,8 +298,8 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
chrome_browser->site_data[contents->GetBrowserContext()];
SiteDetails::CollectSiteInfo(contents, &site_data);
- bool is_webui =
- rvh->GetEnabledBindings() & content::BINDINGS_POLICY_WEB_UI;
+ bool is_webui = rvh->GetMainFrame()->GetEnabledBindings() &
+ content::BINDINGS_POLICY_WEB_UI;
if (is_webui) {
process.renderer_type = ProcessMemoryInformation::RENDERER_CHROME;

Powered by Google App Engine
This is Rietveld 408576698