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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 10543042: Merge 139683 - Disable showing GSC when in KioskMode. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 6 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/chromeos/login/existing_user_controller.cc
===================================================================
--- chrome/browser/chromeos/login/existing_user_controller.cc (revision 140908)
+++ chrome/browser/chromeos/login/existing_user_controller.cc (working copy)
@@ -711,15 +711,16 @@
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)) {
« 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