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

Unified Diff: chrome/browser/popup_blocker_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
« no previous file with comments | « chrome/browser/magic_iframe_browsertest.cc ('k') | chrome/browser/prerender/prerender_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/popup_blocker_browsertest.cc
===================================================================
--- chrome/browser/popup_blocker_browsertest.cc (revision 116109)
+++ chrome/browser/popup_blocker_browsertest.cc (working copy)
@@ -14,9 +14,11 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
+using content::WebContents;
+
namespace {
static const FilePath::CharType* kTestDir = FILE_PATH_LITERAL("popup_blocker");
@@ -34,7 +36,7 @@
// to the original URL.
EXPECT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile()));
EXPECT_EQ(1, browser()->tab_count());
- TabContents* cur_tab = browser()->GetSelectedTabContents();
+ WebContents* cur_tab = browser()->GetSelectedWebContents();
ASSERT_TRUE(cur_tab);
EXPECT_EQ(url, cur_tab->GetURL());
}
« no previous file with comments | « chrome/browser/magic_iframe_browsertest.cc ('k') | chrome/browser/prerender/prerender_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698