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

Unified Diff: chrome/test/base/in_process_browser_test.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/test/base/browser_with_test_window_test.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test.cc
===================================================================
--- chrome/test/base/in_process_browser_test.cc (revision 145001)
+++ chrome/test/base/in_process_browser_test.cc (working copy)
@@ -22,6 +22,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_navigator.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_constants.h"
@@ -285,8 +286,8 @@
ui_test_utils::WindowedNotificationObserver observer(
content::NOTIFICATION_LOAD_STOP,
content::NotificationService::AllSources());
- browser->AddSelectedTabWithURL(
- GURL(chrome::kAboutBlankURL), content::PAGE_TRANSITION_START_PAGE);
+ chrome::AddSelectedTabWithURL(browser, GURL(chrome::kAboutBlankURL),
+ content::PAGE_TRANSITION_START_PAGE);
observer.Wait();
browser->window()->Show();
@@ -349,7 +350,7 @@
if (!BrowserList::empty()) {
browser_ = *BrowserList::begin();
- ui_test_utils::WaitForLoadStop(browser_->GetActiveWebContents());
+ ui_test_utils::WaitForLoadStop(chrome::GetActiveWebContents(browser_));
}
// Pump any pending events that were created as a result of creating a
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698