| Index: chrome/browser/sessions/session_service.cc
|
| diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc
|
| index 7ec80a4ce19f92227e97578a6438b2a3fa96190a..f2979a569bbbb4845d949ddf28e50bfb7b6686a6 100644
|
| --- a/chrome/browser/sessions/session_service.cc
|
| +++ b/chrome/browser/sessions/session_service.cc
|
| @@ -11,6 +11,7 @@
|
|
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| +#include "base/command_line.h"
|
| #include "base/file_util.h"
|
| #include "base/memory/scoped_vector.h"
|
| #include "base/message_loop.h"
|
| @@ -485,7 +486,8 @@ bool SessionService::RestoreIfNecessary(const std::vector<GURL>& urls_to_open,
|
| MoveCurrentSessionToLastSession();
|
| move_on_new_browser_ = false;
|
| }
|
| - SessionStartupPref pref = SessionStartupPref::GetStartupPref(profile());
|
| + SessionStartupPref pref = BrowserInit::GetSessionStartupPref(
|
| + *CommandLine::ForCurrentProcess(), profile());
|
| if (pref.type == SessionStartupPref::LAST) {
|
| SessionRestore::RestoreSession(
|
| profile(), browser,
|
|
|