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

Unified Diff: chrome/browser/plugins/plugin_observer.cc

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years 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 | « chrome/browser/plugins/plugin_observer.h ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_observer.cc
===================================================================
--- chrome/browser/plugins/plugin_observer.cc (revision 241294)
+++ chrome/browser/plugins/plugin_observer.cc (working copy)
@@ -24,6 +24,7 @@
#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/plugin_service.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_delegate.h"
@@ -182,8 +183,8 @@
#endif
}
-void PluginObserver::RenderViewCreated(
- content::RenderViewHost* render_view_host) {
+void PluginObserver::RenderFrameCreated(
+ content::RenderFrameHost* render_frame_host) {
#if defined(USE_AURA) && defined(OS_WIN)
// If the window belongs to the Ash desktop, before we navigate we need
// to tell the renderview that NPAPI plugins are not supported so it does
@@ -208,8 +209,8 @@
if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH ||
chrome::GetHostDesktopTypeForNativeView(window) ==
chrome::HOST_DESKTOP_TYPE_ASH) {
- int routing_id = render_view_host->GetRoutingID();
- render_view_host->Send(new ChromeViewMsg_NPAPINotSupported(routing_id));
+ int routing_id = render_frame_host->GetRoutingID();
+ render_frame_host->Send(new ChromeViewMsg_NPAPINotSupported(routing_id));
}
#endif
}
« no previous file with comments | « chrome/browser/plugins/plugin_observer.h ('k') | chrome/browser/prerender/prerender_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698