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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 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 | Annotate | Revision Log
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/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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698