| Index: chrome/browser/ui/browser_browsertest.cc
|
| diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc
|
| index 7cf1054f7dca85f550f497fb90e66966c97dd8c9..10ebfc0484a8fbdbecc6a0df70d02a933a18f480 100644
|
| --- a/chrome/browser/ui/browser_browsertest.cc
|
| +++ b/chrome/browser/ui/browser_browsertest.cc
|
| @@ -16,6 +16,7 @@
|
| #include "chrome/browser/extensions/extension_browsertest.h"
|
| #include "chrome/browser/extensions/extension_service.h"
|
| #include "chrome/browser/extensions/extension_tab_helper.h"
|
| +#include "chrome/browser/first_run/first_run.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/tabs/pinned_tab_codec.h"
|
| #include "chrome/browser/tabs/tab_strip_model.h"
|
| @@ -731,7 +732,9 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, AppIdSwitch) {
|
| CommandLine command_line(CommandLine::NO_PROGRAM);
|
| command_line.AppendSwitchASCII(switches::kAppId, extension_app->id());
|
|
|
| - BrowserInit::LaunchWithProfile launch(FilePath(), command_line);
|
| + BrowserInit::IsFirstRun first_run = FirstRun::IsChromeFirstRun() ?
|
| + BrowserInit::IS_FIRST_RUN : BrowserInit::IS_NOT_FIRST_RUN;
|
| + BrowserInit::LaunchWithProfile launch(FilePath(), command_line, first_run);
|
| ASSERT_TRUE(launch.OpenApplicationWindow(browser()->profile()));
|
|
|
| // Check that the new browser has an app name.
|
| @@ -936,7 +939,9 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, RestorePinnedTabs) {
|
|
|
| // Simulate launching again.
|
| CommandLine dummy(CommandLine::NO_PROGRAM);
|
| - BrowserInit::LaunchWithProfile launch(FilePath(), dummy);
|
| + BrowserInit::IsFirstRun first_run = FirstRun::IsChromeFirstRun() ?
|
| + BrowserInit::IS_FIRST_RUN : BrowserInit::IS_NOT_FIRST_RUN;
|
| + BrowserInit::LaunchWithProfile launch(FilePath(), dummy, first_run);
|
| launch.profile_ = browser()->profile();
|
| launch.ProcessStartupURLs(std::vector<GURL>());
|
|
|
|
|