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

Unified Diff: chrome/browser/extensions/extension_debugger_api.cc

Issue 10421003: Remove a bunch of trivial render_view_host_delegate.h includes in chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 7 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/extensions/extension_debugger_api.cc
===================================================================
--- chrome/browser/extensions/extension_debugger_api.cc (revision 138257)
+++ chrome/browser/extensions/extension_debugger_api.cc (working copy)
@@ -33,7 +33,6 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/render_view_host_delegate.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_client.h"
#include "grit/generated_resources.h"
@@ -44,10 +43,10 @@
using content::DevToolsAgentHostRegistry;
using content::DevToolsClientHost;
using content::DevToolsManager;
+using content::WebContents;
namespace keys = extension_debugger_api_constants;
-using content::WebContents;
class ExtensionDevToolsInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
@@ -146,8 +145,7 @@
continue;
content::RenderViewHost* rvh =
DevToolsAgentHostRegistry::GetRenderViewHost(agent_host);
- if (rvh && rvh->GetDelegate() &&
- rvh->GetDelegate()->GetAsWebContents() == contents)
+ if (rvh && WebContents::FromRenderViewHost(rvh) == contents)
return static_cast<ExtensionDevToolsClientHost*>(*it);
}
return NULL;
« no previous file with comments | « chrome/browser/extensions/api/web_navigation/web_navigation_api.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698