| OLD | NEW |
| 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/ui/webui/options/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "apps/shell_window.h" | 10 #include "apps/shell_window.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 #if defined(OS_CHROMEOS) | 96 #if defined(OS_CHROMEOS) |
| 97 #include "ash/ash_switches.h" | 97 #include "ash/ash_switches.h" |
| 98 #include "ash/magnifier/magnifier_constants.h" | 98 #include "ash/magnifier/magnifier_constants.h" |
| 99 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 99 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 100 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h" | 100 #include "chrome/browser/chromeos/extensions/wallpaper_manager_util.h" |
| 101 #include "chrome/browser/chromeos/login/user_manager.h" | 101 #include "chrome/browser/chromeos/login/user_manager.h" |
| 102 #include "chrome/browser/chromeos/settings/cros_settings.h" | 102 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 103 #include "chrome/browser/chromeos/system/timezone_util.h" | 103 #include "chrome/browser/chromeos/system/timezone_util.h" |
| 104 #include "chrome/browser/policy/browser_policy_connector.h" | 104 #include "chrome/browser/policy/browser_policy_connector.h" |
| 105 #include "chrome/browser/policy/policy_service.h" | |
| 106 #include "chrome/browser/policy/profile_policy_connector.h" | 105 #include "chrome/browser/policy/profile_policy_connector.h" |
| 107 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 106 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
| 108 #include "chrome/browser/ui/browser_window.h" | 107 #include "chrome/browser/ui/browser_window.h" |
| 109 #include "chromeos/dbus/dbus_thread_manager.h" | 108 #include "chromeos/dbus/dbus_thread_manager.h" |
| 110 #include "chromeos/dbus/power_manager_client.h" | 109 #include "chromeos/dbus/power_manager_client.h" |
| 111 #include "components/policy/core/common/policy_map.h" | 110 #include "components/policy/core/common/policy_map.h" |
| 112 #include "components/policy/core/common/policy_namespace.h" | 111 #include "components/policy/core/common/policy_namespace.h" |
| 112 #include "components/policy/core/common/policy_service.h" |
| 113 #include "policy/policy_constants.h" | 113 #include "policy/policy_constants.h" |
| 114 #include "ui/gfx/image/image_skia.h" | 114 #include "ui/gfx/image/image_skia.h" |
| 115 #endif // defined(OS_CHROMEOS) | 115 #endif // defined(OS_CHROMEOS) |
| 116 | 116 |
| 117 #if defined(OS_WIN) | 117 #if defined(OS_WIN) |
| 118 #include "chrome/installer/util/auto_launch_util.h" | 118 #include "chrome/installer/util/auto_launch_util.h" |
| 119 #endif // defined(OS_WIN) | 119 #endif // defined(OS_WIN) |
| 120 | 120 |
| 121 #if defined(ENABLE_MDNS) | 121 #if defined(ENABLE_MDNS) |
| 122 #include "chrome/browser/local_discovery/privet_notifications.h" | 122 #include "chrome/browser/local_discovery/privet_notifications.h" |
| (...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { | 1663 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { |
| 1664 bool has_users = !Profile::FromWebUI(web_ui())-> | 1664 bool has_users = !Profile::FromWebUI(web_ui())-> |
| 1665 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); | 1665 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); |
| 1666 base::FundamentalValue has_users_value(has_users); | 1666 base::FundamentalValue has_users_value(has_users); |
| 1667 web_ui()->CallJavascriptFunction( | 1667 web_ui()->CallJavascriptFunction( |
| 1668 "BrowserOptions.updateManagesSupervisedUsers", | 1668 "BrowserOptions.updateManagesSupervisedUsers", |
| 1669 has_users_value); | 1669 has_users_value); |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 } // namespace options | 1672 } // namespace options |
| OLD | NEW |