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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc

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/custom_handlers/protocol_handler_registry_browsertest.cc
===================================================================
--- chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc (revision 116109)
+++ chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc (working copy)
@@ -16,6 +16,8 @@
#include "content/public/browser/navigation_entry.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
+using content::WebContents;
+
namespace {
class TestRenderViewContextMenu : public RenderViewContextMenu {
@@ -44,8 +46,8 @@
params.media_type = WebKit::WebContextMenuData::MediaTypeNone;
params.link_url = url;
params.unfiltered_link_url = url;
- TabContents* tab_contents = browser()->GetSelectedTabContents();
- params.page_url = tab_contents->GetController().GetActiveEntry()->GetURL();
+ WebContents* web_contents = browser()->GetSelectedWebContents();
+ params.page_url = web_contents->GetController().GetActiveEntry()->GetURL();
#if defined(OS_MACOSX)
params.writing_direction_default = 0;
params.writing_direction_left_to_right = 0;
« no previous file with comments | « chrome/browser/chromeos/tab_closeable_state_watcher_browsertest.cc ('k') | chrome/browser/debugger/devtools_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698