| Index: chrome/browser/chromeos/login/existing_user_controller.cc
|
| diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
|
| index cc8356f00ce2ba0ba9a751ec1894d9f950eb558d..b0cd72543b9ffb8b6c836c31ba11618f3c2cf41e 100644
|
| --- a/chrome/browser/chromeos/login/existing_user_controller.cc
|
| +++ b/chrome/browser/chromeos/login/existing_user_controller.cc
|
| @@ -715,15 +715,16 @@ void ExistingUserController::InitializeStartUrls() const {
|
|
|
| PrefService* prefs = g_browser_process->local_state();
|
| const base::ListValue *urls;
|
| - if (UserManager::Get()->IsLoggedInAsDemoUser() &&
|
| - CrosSettings::Get()->GetList(kStartUpUrls, &urls)) {
|
| - // the demo user will get its start urls from the special policy if it is
|
| - // set.
|
| - for (base::ListValue::const_iterator it = urls->begin();
|
| - it != urls->end(); ++it) {
|
| - std::string url;
|
| - if ((*it)->GetAsString(&url))
|
| - start_urls.push_back(url);
|
| + if (UserManager::Get()->IsLoggedInAsDemoUser()) {
|
| + if (CrosSettings::Get()->GetList(kStartUpUrls, &urls)) {
|
| + // the demo user will get its start urls from the special policy if it is
|
| + // set.
|
| + for (base::ListValue::const_iterator it = urls->begin();
|
| + it != urls->end(); ++it) {
|
| + std::string url;
|
| + if ((*it)->GetAsString(&url))
|
| + start_urls.push_back(url);
|
| + }
|
| }
|
| } else {
|
| if (prefs->GetBoolean(prefs::kSpokenFeedbackEnabled)) {
|
|
|