Index: chrome/browser/ui/startup/startup_browser_creator_browsertest.cc |
diff --git a/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc b/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc |
index a982f8828e7ef450b88887524bf04c22ae6baf76..8bfbfdc067ee28f955d2401f99539a9da849a2ff 100644 |
--- a/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc |
+++ b/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc |
@@ -11,6 +11,7 @@ |
#include "chrome/browser/extensions/extension_system.h" |
#include "chrome/browser/first_run/first_run.h" |
#include "chrome/browser/infobars/infobar_service.h" |
+#include "chrome/browser/operation_output.h" |
#include "chrome/browser/prefs/session_startup_pref.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_impl.h" |
@@ -592,13 +593,13 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, StartupURLsForTwoProfiles) { |
// Do a simple non-process-startup browser launch. |
CommandLine dummy(CommandLine::NO_PROGRAM); |
- int return_code; |
StartupBrowserCreator browser_creator; |
std::vector<Profile*> last_opened_profiles; |
last_opened_profiles.push_back(default_profile); |
last_opened_profiles.push_back(other_profile); |
browser_creator.Start(dummy, profile_manager->user_data_dir(), |
- default_profile, last_opened_profiles, &return_code); |
+ default_profile, last_opened_profiles, |
+ scoped_ptr<OperationOutput>()); |
// urls1 were opened in a browser for default_profile, and urls2 were opened |
// in a browser for other_profile. |
@@ -661,13 +662,12 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, UpdateWithTwoProfiles) { |
// Simulate a launch after a browser update. |
CommandLine dummy(CommandLine::NO_PROGRAM); |
- int return_code; |
StartupBrowserCreator browser_creator; |
std::vector<Profile*> last_opened_profiles; |
last_opened_profiles.push_back(profile1); |
last_opened_profiles.push_back(profile2); |
browser_creator.Start(dummy, profile_manager->user_data_dir(), profile1, |
- last_opened_profiles, &return_code); |
+ last_opened_profiles, scoped_ptr<OperationOutput>()); |
while (SessionRestore::IsRestoring(profile1) || |
SessionRestore::IsRestoring(profile2)) |
@@ -749,7 +749,6 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, |
// Do a simple non-process-startup browser launch. |
CommandLine dummy(CommandLine::NO_PROGRAM); |
- int return_code; |
StartupBrowserCreator browser_creator; |
std::vector<Profile*> last_opened_profiles; |
last_opened_profiles.push_back(profile_home1); |
@@ -757,7 +756,7 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, |
last_opened_profiles.push_back(profile_last); |
last_opened_profiles.push_back(profile_urls); |
browser_creator.Start(dummy, profile_manager->user_data_dir(), profile_home1, |
- last_opened_profiles, &return_code); |
+ last_opened_profiles, scoped_ptr<OperationOutput>()); |
while (SessionRestore::IsRestoring(default_profile) || |
SessionRestore::IsRestoring(profile_home1) || |
@@ -846,14 +845,13 @@ IN_PROC_BROWSER_TEST_F(StartupBrowserCreatorTest, ProfilesLaunchedAfterCrash) { |
CommandLine dummy(CommandLine::NO_PROGRAM); |
dummy.AppendSwitchASCII(switches::kTestType, "browser"); |
- int return_code; |
StartupBrowserCreator browser_creator; |
std::vector<Profile*> last_opened_profiles; |
last_opened_profiles.push_back(profile_home); |
last_opened_profiles.push_back(profile_last); |
last_opened_profiles.push_back(profile_urls); |
browser_creator.Start(dummy, profile_manager->user_data_dir(), profile_home, |
- last_opened_profiles, &return_code); |
+ last_opened_profiles, scoped_ptr<OperationOutput>()); |
// No profiles are getting restored, since they all display the crash info |
// bar. |