| Index: chrome/browser/ui/browser_list_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/ui/browser_list_unittest.cc (revision 137868)
|
| +++ chrome/browser/ui/browser_list_unittest.cc (working copy)
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/browser_shutdown.h"
|
| +#include "chrome/browser/lifetime/application_lifetime.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/printing/background_printing_manager.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| @@ -262,9 +263,9 @@
|
| ProfileManager* profile_manager = new ProfileManager(FilePath());
|
| testing_browser_process->SetProfileManager(profile_manager);
|
|
|
| - BrowserList::AttemptRestart();
|
| - // Cancel the effects of us calling BrowserList::AttemptRestart. Otherwise
|
| - // tests ran after this one will fail.
|
| + browser::AttemptRestart();
|
| + // Cancel the effects of us calling browser::AttemptRestart. Otherwise tests
|
| + // ran after this one will fail.
|
| browser_shutdown::SetTryingToQuit(false);
|
|
|
| EXPECT_TRUE(testing_pref_service.GetBoolean(prefs::kWasRestarted));
|
|
|