| 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 29 matching lines...) Expand all Loading... |
| 40 #include "chrome/browser/profiles/profile_info_util.h" | 40 #include "chrome/browser/profiles/profile_info_util.h" |
| 41 #include "chrome/browser/profiles/profile_manager.h" | 41 #include "chrome/browser/profiles/profile_manager.h" |
| 42 #include "chrome/browser/profiles/profile_metrics.h" | 42 #include "chrome/browser/profiles/profile_metrics.h" |
| 43 #include "chrome/browser/profiles/profile_shortcut_manager.h" | 43 #include "chrome/browser/profiles/profile_shortcut_manager.h" |
| 44 #include "chrome/browser/profiles/profile_window.h" | 44 #include "chrome/browser/profiles/profile_window.h" |
| 45 #include "chrome/browser/profiles/profiles_state.h" | 45 #include "chrome/browser/profiles/profiles_state.h" |
| 46 #include "chrome/browser/search/search.h" | 46 #include "chrome/browser/search/search.h" |
| 47 #include "chrome/browser/search_engines/template_url.h" | 47 #include "chrome/browser/search_engines/template_url.h" |
| 48 #include "chrome/browser/search_engines/template_url_service.h" | 48 #include "chrome/browser/search_engines/template_url_service.h" |
| 49 #include "chrome/browser/search_engines/template_url_service_factory.h" | 49 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 50 #include "chrome/browser/service/service_process_control.h" | |
| 51 #include "chrome/browser/signin/signin_manager.h" | 50 #include "chrome/browser/signin/signin_manager.h" |
| 52 #include "chrome/browser/signin/signin_manager_factory.h" | 51 #include "chrome/browser/signin/signin_manager_factory.h" |
| 53 #include "chrome/browser/sync/profile_sync_service.h" | 52 #include "chrome/browser/sync/profile_sync_service.h" |
| 54 #include "chrome/browser/sync/profile_sync_service_factory.h" | 53 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 55 #include "chrome/browser/sync/sync_ui_util.h" | 54 #include "chrome/browser/sync/sync_ui_util.h" |
| 56 #include "chrome/browser/themes/theme_service.h" | 55 #include "chrome/browser/themes/theme_service.h" |
| 57 #include "chrome/browser/themes/theme_service_factory.h" | 56 #include "chrome/browser/themes/theme_service_factory.h" |
| 58 #include "chrome/browser/ui/browser_finder.h" | 57 #include "chrome/browser/ui/browser_finder.h" |
| 59 #include "chrome/browser/ui/chrome_select_file_policy.h" | 58 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 60 #include "chrome/browser/ui/host_desktop.h" | 59 #include "chrome/browser/ui/host_desktop.h" |
| (...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { | 1579 void BrowserOptionsHandler::SetupManagingSupervisedUsers() { |
| 1581 bool has_users = !Profile::FromWebUI(web_ui())-> | 1580 bool has_users = !Profile::FromWebUI(web_ui())-> |
| 1582 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); | 1581 GetPrefs()->GetDictionary(prefs::kManagedUsers)->empty(); |
| 1583 base::FundamentalValue has_users_value(has_users); | 1582 base::FundamentalValue has_users_value(has_users); |
| 1584 web_ui()->CallJavascriptFunction( | 1583 web_ui()->CallJavascriptFunction( |
| 1585 "BrowserOptions.updateManagesSupervisedUsers", | 1584 "BrowserOptions.updateManagesSupervisedUsers", |
| 1586 has_users_value); | 1585 has_users_value); |
| 1587 } | 1586 } |
| 1588 | 1587 |
| 1589 } // namespace options | 1588 } // namespace options |
| OLD | NEW |