| Index: chrome/browser/browser_init.cc
|
| diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
|
| index 4aecb2cbe3519bb60d723d2538a762f344d6fa4d..7123a5d3b69e28423c36e2bd0b102e04c763780d 100644
|
| --- a/chrome/browser/browser_init.cc
|
| +++ b/chrome/browser/browser_init.cc
|
| @@ -194,9 +194,12 @@ bool BrowserInit::LaunchWithProfile::Launch(Profile* profile,
|
| // the home pages if no additional URLs were passed on the command line.
|
| if (!OpenStartupURLs(process_startup, urls_to_open)) {
|
| // Add the home page and any special first run URLs.
|
| - AddStartupURLs(&urls_to_open);
|
| - OpenURLsInBrowser(BrowserList::GetLastActive(), process_startup,
|
| - urls_to_open);
|
| + Browser* browser = NULL;
|
| + if (urls_to_open.empty())
|
| + AddStartupURLs(&urls_to_open);
|
| + else
|
| + browser = BrowserList::GetLastActive();
|
| + OpenURLsInBrowser(browser, process_startup, urls_to_open);
|
| }
|
| }
|
|
|
|
|