diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-19 22:21:26 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-19 22:21:26 +0000 |
commit | 216813957f67962e1c50fcbbad0d3e8fcd17760e (patch) | |
tree | 273740c80787aa384f3271aae447b8b2a135e65f /chrome/browser/ui/cocoa/applescript/tab_applescript.mm | |
parent | 061c8a500fdcd398614a369093d1f80d7ac8190d (diff) | |
download | chromium_src-216813957f67962e1c50fcbbad0d3e8fcd17760e.zip chromium_src-216813957f67962e1c50fcbbad0d3e8fcd17760e.tar.gz chromium_src-216813957f67962e1c50fcbbad0d3e8fcd17760e.tar.bz2 |
Remove functions in RenderViewHost and RenderWidgetHost that just send an IPC message and are called by one or two places. Have the callers send the message instead. Also remove functions which dispatch an IPC only to call TabContents. Dispatch in TabContents instead.
Review URL: http://codereview.chromium.org/7037041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa/applescript/tab_applescript.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/applescript/tab_applescript.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm index 401eb6b..151e74b 100644 --- a/chrome/browser/ui/cocoa/applescript/tab_applescript.mm +++ b/chrome/browser/ui/cocoa/applescript/tab_applescript.mm @@ -18,6 +18,7 @@ #include "content/browser/renderer_host/render_view_host.h" #include "content/browser/tab_contents/navigation_controller.h" #include "content/browser/tab_contents/navigation_entry.h" +#include "content/common/view_messages.h" #include "googleurl/src/gurl.h" @interface TabAppleScript() @@ -224,7 +225,7 @@ return; } - view->Stop(); + view->Send(new ViewMsg_Stop(view->routing_id())); } - (void)handlesPrintScriptCommand:(NSScriptCommand*)command { |