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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 10454087: Merge 139683 - Disable showing GSC when in KioskMode. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/existing_user_controller.h" 5 #include "chrome/browser/chromeos/login/existing_user_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 return host_->GetNativeWindow(); 704 return host_->GetNativeWindow();
705 } 705 }
706 706
707 void ExistingUserController::InitializeStartUrls() const { 707 void ExistingUserController::InitializeStartUrls() const {
708 std::vector<std::string> start_urls; 708 std::vector<std::string> start_urls;
709 // Guide URL is not added to start URLs as it should be passed as an app. 709 // Guide URL is not added to start URLs as it should be passed as an app.
710 std::string guide_url; 710 std::string guide_url;
711 711
712 PrefService* prefs = g_browser_process->local_state(); 712 PrefService* prefs = g_browser_process->local_state();
713 const base::ListValue *urls; 713 const base::ListValue *urls;
714 if (UserManager::Get()->IsLoggedInAsDemoUser() && 714 if (UserManager::Get()->IsLoggedInAsDemoUser()) {
715 CrosSettings::Get()->GetList(kStartUpUrls, &urls)) { 715 if (CrosSettings::Get()->GetList(kStartUpUrls, &urls)) {
716 // the demo user will get its start urls from the special policy if it is 716 // the demo user will get its start urls from the special policy if it is
717 // set. 717 // set.
718 for (base::ListValue::const_iterator it = urls->begin(); 718 for (base::ListValue::const_iterator it = urls->begin();
719 it != urls->end(); ++it) { 719 it != urls->end(); ++it) {
720 std::string url; 720 std::string url;
721 if ((*it)->GetAsString(&url)) 721 if ((*it)->GetAsString(&url))
722 start_urls.push_back(url); 722 start_urls.push_back(url);
723 }
723 } 724 }
724 } else { 725 } else {
725 if (prefs->GetBoolean(prefs::kSpokenFeedbackEnabled)) { 726 if (prefs->GetBoolean(prefs::kSpokenFeedbackEnabled)) {
726 const char* url = kChromeVoxTutorialURLPattern; 727 const char* url = kChromeVoxTutorialURLPattern;
727 const std::string current_locale = 728 const std::string current_locale =
728 StringToLowerASCII(prefs->GetString(prefs::kApplicationLocale)); 729 StringToLowerASCII(prefs->GetString(prefs::kApplicationLocale));
729 std::string vox_url = base::StringPrintf(url, current_locale.c_str()); 730 std::string vox_url = base::StringPrintf(url, current_locale.c_str());
730 start_urls.push_back(vox_url); 731 start_urls.push_back(vox_url);
731 } else { 732 } else {
732 guide_url = GetGettingStartedGuideURL(); 733 guide_url = GetGettingStartedGuideURL();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 // Invalidate OAuth token, since it can't be correct after password is 866 // Invalidate OAuth token, since it can't be correct after password is
866 // changed. 867 // changed.
867 UserManager::Get()->SaveUserOAuthStatus(username, 868 UserManager::Get()->SaveUserOAuthStatus(username,
868 User::OAUTH_TOKEN_STATUS_INVALID); 869 User::OAUTH_TOKEN_STATUS_INVALID);
869 870
870 login_display_->SetUIEnabled(true); 871 login_display_->SetUIEnabled(true);
871 login_display_->ShowGaiaPasswordChanged(username); 872 login_display_->ShowGaiaPasswordChanged(username);
872 } 873 }
873 874
874 } // namespace chromeos 875 } // namespace chromeos
OLDNEW
« 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