| 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/app_window.h" |
| 11 #include "apps/shell_window_registry.h" | 11 #include "apps/app_window_registry.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
| 16 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/prefs/pref_service.h" | 19 #include "base/prefs/pref_service.h" |
| 20 #include "base/prefs/scoped_user_pref_update.h" | 20 #include "base/prefs/scoped_user_pref_update.h" |
| 21 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
| (...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { | 1714 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { |
| 1715 bool has_users = !Profile::FromWebUI(web_ui())-> | 1715 bool has_users = !Profile::FromWebUI(web_ui())-> |
| 1716 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); | 1716 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); |
| 1717 base::FundamentalValue has_users_value(has_users); | 1717 base::FundamentalValue has_users_value(has_users); |
| 1718 web_ui()->CallJavascriptFunction( | 1718 web_ui()->CallJavascriptFunction( |
| 1719 "BrowserOptions.updateManagesSupervisedUsers", | 1719 "BrowserOptions.updateManagesSupervisedUsers", |
| 1720 has_users_value); | 1720 has_users_value); |
| 1721 } | 1721 } |
| 1722 | 1722 |
| 1723 } // namespace options | 1723 } // namespace options |
| OLD | NEW |