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

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

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/browser/extensions/execute_code_in_tab_function.cc
diff --git a/chrome/browser/extensions/execute_code_in_tab_function.cc b/chrome/browser/extensions/execute_code_in_tab_function.cc
index 2d27d1d744deb53a8e47ca93a7ac11af13094e66..684b9ae6f9ea6d19bf13158d7f4d6a90afe1aadf 100644
--- a/chrome/browser/extensions/execute_code_in_tab_function.cc
+++ b/chrome/browser/extensions/execute_code_in_tab_function.cc
@@ -224,8 +224,9 @@ bool ExecuteCodeInTabFunction::Execute(const std::string& code_string) {
params.code = code_string;
params.all_frames = all_frames_;
params.in_main_world = false;
- contents->render_view_host()->Send(new ExtensionMsg_ExecuteCode(
- contents->render_view_host()->routing_id(), params));
+ contents->tab_contents()->render_view_host()->Send(
+ new ExtensionMsg_ExecuteCode(
+ contents->tab_contents()->render_view_host()->routing_id(), params));
Observe(contents->tab_contents());
AddRef(); // balanced in OnExecuteCodeFinished()
« no previous file with comments | « chrome/browser/extensions/app_process_apitest.cc ('k') | chrome/browser/extensions/extension_browsertests_misc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698