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

Unified Diff: chrome/browser/sessions/session_restore_browsertest.cc

Issue 9085006: Replace Browser::GetTabContentsAt with GetWebContentsAt and update all callers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac yet again 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/sessions/session_restore_browsertest.cc
===================================================================
--- chrome/browser/sessions/session_restore_browsertest.cc (revision 116244)
+++ chrome/browser/sessions/session_restore_browsertest.cc (working copy)
@@ -13,9 +13,9 @@
#include "chrome/browser/ui/browser_window.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/notification_service.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/common/page_transition_types.h"
namespace {
@@ -107,7 +107,7 @@
ASSERT_EQ(1, new_browser->tab_count());
// And the first url should be url.
- EXPECT_EQ(url, new_browser->GetTabContentsAt(0)->GetURL());
+ EXPECT_EQ(url, new_browser->GetWebContentsAt(0)->GetURL());
}
IN_PROC_BROWSER_TEST_F(SessionRestoreTest, RestoreIndividualTabFromWindow) {
@@ -232,5 +232,5 @@
// The first tab should have 'url' as its url.
Browser* new_browser = ui_test_utils::WaitForNewBrowser();
ASSERT_TRUE(new_browser);
- EXPECT_EQ(url, new_browser->GetTabContentsAt(0)->GetURL());
+ EXPECT_EQ(url, new_browser->GetWebContentsAt(0)->GetURL());
}
« no previous file with comments | « chrome/browser/renderer_host/web_cache_manager_browsertest.cc ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698