Index: chrome/browser/fast_shutdown_browsertest.cc |
diff --git a/chrome/browser/fast_shutdown_browsertest.cc b/chrome/browser/fast_shutdown_browsertest.cc |
index e50706132ab4176d8e9d1d3b138c35e2718f4fe4..fda079b353582383994a03c743dc19cdc0f3a589 100644 |
--- a/chrome/browser/fast_shutdown_browsertest.cc |
+++ b/chrome/browser/fast_shutdown_browsertest.cc |
@@ -12,7 +12,7 @@ |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_commands.h" |
#include "chrome/browser/ui/browser_finder.h" |
-#include "chrome/browser/ui/browser_iterator.h" |
+#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/test/base/in_process_browser_test.h" |
@@ -58,9 +58,7 @@ IN_PROC_BROWSER_TEST_F(FastShutdown, DISABLED_SlowTermination) { |
// Close the new window, removing the one and only beforeunload handler. |
ASSERT_EQ(2u, chrome::GetTotalBrowserCount()); |
- chrome::BrowserIterator it; |
- it.Next(); |
- chrome::CloseWindow(*it); |
+ chrome::CloseWindow(*(BrowserList::GetInstance()->begin() + 1)); |
// Need to wait for the renderer process to shutdown to ensure that we got the |
// set cookies IPC. |