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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/ui/cocoa/extensions/extension_action_context_menu.mm
===================================================================
--- chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm (revision 116109)
+++ chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm (working copy)
@@ -37,6 +37,7 @@
using content::OpenURLParams;
using content::Referrer;
+using content::WebContents;
// A class that loads the extension icon on the I/O thread before showing the
// confirmation dialog to uninstall the given extension.
@@ -153,7 +154,7 @@
Browser* browser = BrowserList::GetLastActive();
if(!browser)
return -1;
- TabContents* contents = browser->GetSelectedTabContents();
+ WebContents* contents = browser->GetSelectedWebContents();
if (!contents)
return -1;
return ExtensionTabUtil::GetTabId(contents);
« no previous file with comments | « chrome/browser/ui/cocoa/dev_tools_controller.mm ('k') | chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698