Remove obsolete special case for Retail mode start-up urls policy.

Chrome starts correctly with start up urls specified by policy regardless of
the session restore settings.

BUG=301711
TEST=Enroll in Retail mode and verify that the StartUpUrls policy is respected as before.

Review URL: https://codereview.chromium.org/25076007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226512 0039d316-1c4b-4281-b951-d872f2087c98
parent f9d750b6
...@@ -363,16 +363,6 @@ SessionStartupPref StartupBrowserCreator::GetSessionStartupPref( ...@@ -363,16 +363,6 @@ SessionStartupPref StartupBrowserCreator::GetSessionStartupPref(
pref.type = SessionStartupPref::DEFAULT; pref.type = SessionStartupPref::DEFAULT;
} }
#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);
pref.type = SessionStartupPref::DEFAULT;
}
#endif // OS_CHROMEOS
return pref; return pref;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment