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

Side by Side Diff: chrome/browser/chromeos/login/screens/user_selection_screen.cc

Issue 2534433002: Mop up incorrect uses of IsEnterpriseManaged() (Closed)
Patch Set: Address Roman's comment Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/screens/user_selection_screen.h" 5 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const size_t kMaxUsers = 18; 67 const size_t kMaxUsers = 18;
68 68
69 const int kPasswordClearTimeoutSec = 60; 69 const int kPasswordClearTimeoutSec = 60;
70 70
71 void AddPublicSessionDetailsToUserDictionaryEntry( 71 void AddPublicSessionDetailsToUserDictionaryEntry(
72 base::DictionaryValue* user_dict, 72 base::DictionaryValue* user_dict,
73 const std::vector<std::string>* public_session_recommended_locales) { 73 const std::vector<std::string>* public_session_recommended_locales) {
74 policy::BrowserPolicyConnectorChromeOS* policy_connector = 74 policy::BrowserPolicyConnectorChromeOS* policy_connector =
75 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 75 g_browser_process->platform_part()->browser_policy_connector_chromeos();
76 76
77 if (policy_connector->IsEnterpriseManaged()) { 77 if (policy_connector->IsCloudManaged()) {
78 user_dict->SetString(kKeyEnterpriseDomain, 78 user_dict->SetString(kKeyEnterpriseDomain,
79 policy_connector->GetEnterpriseDomain()); 79 policy_connector->GetEnterpriseDomain());
80 } 80 }
81 81
82 std::vector<std::string> kEmptyRecommendedLocales; 82 std::vector<std::string> kEmptyRecommendedLocales;
83 const std::vector<std::string>& recommended_locales = 83 const std::vector<std::string>& recommended_locales =
84 public_session_recommended_locales ? 84 public_session_recommended_locales ?
85 *public_session_recommended_locales : kEmptyRecommendedLocales; 85 *public_session_recommended_locales : kEmptyRecommendedLocales;
86 86
87 // Construct the list of available locales. This list consists of the 87 // Construct the list of available locales. This list consists of the
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // The user profile should exist if and only if this is the lock screen. 568 // The user profile should exist if and only if this is the lock screen.
569 DCHECK_EQ(!!profile, GetScreenType() == LOCK_SCREEN); 569 DCHECK_EQ(!!profile, GetScreenType() == LOCK_SCREEN);
570 570
571 if (!profile) 571 if (!profile)
572 profile = profile_helper->GetSigninProfile(); 572 profile = profile_helper->GetSigninProfile();
573 573
574 return EasyUnlockService::Get(profile); 574 return EasyUnlockService::Get(profile);
575 } 575 }
576 576
577 } // namespace chromeos 577 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698