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

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

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 12 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/execute_code_in_tab_function.cc
===================================================================
--- chrome/browser/extensions/execute_code_in_tab_function.cc (revision 116331)
+++ chrome/browser/extensions/execute_code_in_tab_function.cc (working copy)
@@ -24,7 +24,7 @@
#include "chrome/common/extensions/extension_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
using content::BrowserThread;
@@ -87,7 +87,7 @@
CHECK(browser);
CHECK(contents);
if (!GetExtension()->CanExecuteScriptOnPage(
- contents->tab_contents()->GetURL(), NULL, &error_)) {
+ contents->web_contents()->GetURL(), NULL, &error_)) {
return false;
}
@@ -224,11 +224,11 @@
params.code = code_string;
params.all_frames = all_frames_;
params.in_main_world = false;
- contents->tab_contents()->GetRenderViewHost()->Send(
+ contents->web_contents()->GetRenderViewHost()->Send(
new ExtensionMsg_ExecuteCode(
- contents->tab_contents()->GetRenderViewHost()->routing_id(), params));
+ contents->web_contents()->GetRenderViewHost()->routing_id(), params));
- Observe(contents->tab_contents());
+ Observe(contents->web_contents());
AddRef(); // balanced in OnExecuteCodeFinished()
return true;
}
« no previous file with comments | « chrome/browser/download/save_package_file_picker.cc ('k') | chrome/browser/extensions/extension_debugger_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698