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

Unified Diff: chrome/browser/automation/automation_provider_win.cc

Issue 10987047: Remove WebContentsDelegate::ExecuteContextMenuCommand since it's not called by content. Since it's … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: also GetFrameNativeWindow Created 8 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/external_tab/external_tab_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider_win.cc
===================================================================
--- chrome/browser/automation/automation_provider_win.cc (revision 158727)
+++ chrome/browser/automation/automation_provider_win.cc (working copy)
@@ -305,22 +305,8 @@
void AutomationProvider::OnForwardContextMenuCommandToChrome(int tab_handle,
int command) {
- if (!tab_tracker_->ContainsHandle(tab_handle))
- return;
-
- NavigationController* tab = tab_tracker_->GetResource(tab_handle);
- if (!tab) {
- NOTREACHED();
- return;
- }
-
- WebContents* web_contents = tab->GetWebContents();
- if (!web_contents || !web_contents->GetDelegate()) {
- NOTREACHED();
- return;
- }
-
- web_contents->GetDelegate()->ExecuteContextMenuCommand(command);
+ ExternalTabContainer* external_tab = GetExternalTabForHandle(tab_handle);
+ external_tab->ExecuteContextMenuCommand(command);
}
void AutomationProvider::ConnectExternalTab(
« no previous file with comments | « no previous file | chrome/browser/external_tab/external_tab_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698