Chromium Code Reviews| Index: chrome/browser/ui/startup/startup_browser_creator.cc |
| diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
| index f23794bd8623d3bd597757e09cfded7615d85c66..65f1d50222ea6a54b7f1b926a1f357027dc8b97d 100644 |
| --- a/chrome/browser/ui/startup/startup_browser_creator.cc |
| +++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
| @@ -364,13 +364,10 @@ SessionStartupPref StartupBrowserCreator::GetSessionStartupPref( |
| } |
| #if defined(OS_CHROMEOS) |
| - // Kiosk/Retail mode has no profile to restore and fails to open the tabs |
| - // specified in the startup_urls policy if we try to restore the non-existent |
| - // session which is the default for ChromeOS in general. |
| - if (chromeos::KioskModeSettings::Get()->IsKioskModeEnabled()) { |
| - DCHECK(pref.type == SessionStartupPref::LAST); |
| + // Kiosk/Retail mode receives startup URLs through device settings. They are |
| + // appended to the command line, which requires type DEFAULT to work. |
| + if (chromeos::KioskModeSettings::Get()->IsKioskModeEnabled()) |
| pref.type = SessionStartupPref::DEFAULT; |
|
sky
2013/09/27 17:01:15
Why is it a problem to restore the last session he
Mattias Nissler (ping if slow)
2013/09/27 17:07:30
I don't know TBH. Julian, can you please comment?
pastarmovj
2013/09/30 08:53:33
When the new smarter session restore was implement
marja
2013/09/30 11:30:06
Hmm.
1) If your startup pref is "last", and you p
Mattias Nissler (ping if slow)
2013/09/30 12:03:58
FWIW, I didn't change any code, just trying to get
|
| - } |
| #endif // OS_CHROMEOS |
| return pref; |