Index: chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc |
index c6bbe70d5aa148280d488137525f885af928a5d8..9795f4b58eb3236080e4cdac1f5bc5277c374425 100644 |
--- a/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc |
@@ -16,7 +16,6 @@ |
#include "base/sys_info.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/chrome_notification_types.h" |
-#include "chrome/browser/chromeos/login/users/user_manager.h" |
#include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
#include "chrome/browser/chromeos/profiles/profile_helper.h" |
#include "chrome/browser/chromeos/proxy_cros_settings_parser.h" |
@@ -27,6 +26,7 @@ |
#include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
+#include "components/user_manager/user_manager.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/user_metrics.h" |
#include "content/public/browser/web_ui.h" |
@@ -59,7 +59,7 @@ base::DictionaryValue* CreateUserInfo(const std::string& username, |
user_dict->SetString("name", display_email); |
user_dict->SetString("email", display_name); |
- bool is_owner = UserManager::Get()->GetOwnerEmail() == username; |
+ bool is_owner = user_manager::UserManager::Get()->GetOwnerEmail() == username; |
user_dict->SetBoolean("owner", is_owner); |
return user_dict; |
} |
@@ -70,7 +70,7 @@ base::Value* CreateUsersWhitelist(const base::Value *pref_value) { |
const base::ListValue* list_value = |
static_cast<const base::ListValue*>(pref_value); |
base::ListValue* user_list = new base::ListValue(); |
- UserManager* user_manager = UserManager::Get(); |
+ user_manager::UserManager* user_manager = user_manager::UserManager::Get(); |
for (base::ListValue::const_iterator i = list_value->begin(); |
i != list_value->end(); ++i) { |
@@ -246,7 +246,7 @@ base::Value* CoreChromeOSOptionsHandler::CreateValueForPref( |
// The screen lock setting is shared if multiple users are logged in and at |
// least one has chosen to require passwords. |
if (pref_name == prefs::kEnableAutoScreenLock && |
- UserManager::Get()->GetLoggedInUsers().size() > 1 && |
+ user_manager::UserManager::Get()->GetLoggedInUsers().size() > 1 && |
controlling_pref_name.empty()) { |
PrefService* user_prefs = Profile::FromWebUI(web_ui())->GetPrefs(); |
const PrefService::Preference* pref = |
@@ -283,7 +283,7 @@ void CoreChromeOSOptionsHandler::GetLocalizedValues( |
Profile* profile = Profile::FromWebUI(web_ui()); |
AddAccountUITweaksLocalizedValues(localized_strings, profile); |
- UserManager* user_manager = UserManager::Get(); |
+ user_manager::UserManager* user_manager = user_manager::UserManager::Get(); |
// Check at load time whether this is a secondary user in a multi-profile |
// session. |