| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "chrome/common/chrome_constants.h" | 64 #include "chrome/common/chrome_constants.h" |
| 65 #include "chrome/common/chrome_features.h" | 65 #include "chrome/common/chrome_features.h" |
| 66 #include "chrome/common/chrome_paths.h" | 66 #include "chrome/common/chrome_paths.h" |
| 67 #include "chrome/common/chrome_switches.h" | 67 #include "chrome/common/chrome_switches.h" |
| 68 #include "chrome/common/extensions/extension_constants.h" | 68 #include "chrome/common/extensions/extension_constants.h" |
| 69 #include "chrome/common/pref_names.h" | 69 #include "chrome/common/pref_names.h" |
| 70 #include "chrome/common/url_constants.h" | 70 #include "chrome/common/url_constants.h" |
| 71 #include "chrome/grit/chromium_strings.h" | 71 #include "chrome/grit/chromium_strings.h" |
| 72 #include "chrome/grit/generated_resources.h" | 72 #include "chrome/grit/generated_resources.h" |
| 73 #include "chrome/grit/locale_settings.h" | 73 #include "chrome/grit/locale_settings.h" |
| 74 #include "components/browser_sync/browser/profile_sync_service.h" | 74 #include "components/browser_sync/profile_sync_service.h" |
| 75 #include "components/metrics/metrics_pref_names.h" | 75 #include "components/metrics/metrics_pref_names.h" |
| 76 #include "components/policy/core/common/policy_map.h" | 76 #include "components/policy/core/common/policy_map.h" |
| 77 #include "components/policy/core/common/policy_namespace.h" | 77 #include "components/policy/core/common/policy_namespace.h" |
| 78 #include "components/policy/core/common/policy_service.h" | 78 #include "components/policy/core/common/policy_service.h" |
| 79 #include "components/policy/policy_constants.h" | 79 #include "components/policy/policy_constants.h" |
| 80 #include "components/prefs/pref_service.h" | 80 #include "components/prefs/pref_service.h" |
| 81 #include "components/prefs/scoped_user_pref_update.h" | 81 #include "components/prefs/scoped_user_pref_update.h" |
| 82 #include "components/proximity_auth/switches.h" | 82 #include "components/proximity_auth/switches.h" |
| 83 #include "components/proxy_config/proxy_config_pref_names.h" | 83 #include "components/proxy_config/proxy_config_pref_names.h" |
| 84 #include "components/search_engines/template_url.h" | 84 #include "components/search_engines/template_url.h" |
| (...skipping 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2233 | 2233 |
| 2234 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { | 2234 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { |
| 2235 #if defined(OS_CHROMEOS) | 2235 #if defined(OS_CHROMEOS) |
| 2236 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); | 2236 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); |
| 2237 #else | 2237 #else |
| 2238 return true; | 2238 return true; |
| 2239 #endif | 2239 #endif |
| 2240 } | 2240 } |
| 2241 | 2241 |
| 2242 } // namespace options | 2242 } // namespace options |
| OLD | NEW |