Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2924)

Unified Diff: chrome/browser/ui/startup/startup_browser_creator.cc

Issue 25073002: Remove bogus DCHECK for retail startup pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nit. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698