| 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/chromeos/core_chromeos_options_handler
.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler
.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" | 32 #include "chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h" |
| 33 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
| 34 #include "chrome/grit/generated_resources.h" | 34 #include "chrome/grit/generated_resources.h" |
| 35 #include "chromeos/network/network_handler.h" | 35 #include "chromeos/network/network_handler.h" |
| 36 #include "chromeos/network/proxy/ui_proxy_config_service.h" | 36 #include "chromeos/network/proxy/ui_proxy_config_service.h" |
| 37 #include "components/onc/onc_pref_names.h" | 37 #include "components/onc/onc_pref_names.h" |
| 38 #include "components/prefs/pref_change_registrar.h" | 38 #include "components/prefs/pref_change_registrar.h" |
| 39 #include "components/proxy_config/proxy_config_pref_names.h" | 39 #include "components/proxy_config/proxy_config_pref_names.h" |
| 40 #include "components/user_manager/user_manager.h" | 40 #include "components/user_manager/user_manager.h" |
| 41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
| 42 #include "content/public/browser/user_metrics.h" | |
| 43 #include "content/public/browser/web_ui.h" | 42 #include "content/public/browser/web_ui.h" |
| 44 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
| 45 | 44 |
| 46 namespace chromeos { | 45 namespace chromeos { |
| 47 namespace options { | 46 namespace options { |
| 48 | 47 |
| 49 namespace { | 48 namespace { |
| 50 | 49 |
| 51 // List of settings that should be changeable by all users. | 50 // List of settings that should be changeable by all users. |
| 52 const char* kNonPrivilegedSettings[] = { | 51 const char* kNonPrivilegedSettings[] = { |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 GetUiProxyConfigService(), &value); | 417 GetUiProxyConfigService(), &value); |
| 419 DCHECK(value); | 418 DCHECK(value); |
| 420 std::unique_ptr<base::Value> ptr(value); | 419 std::unique_ptr<base::Value> ptr(value); |
| 421 DispatchPrefChangeNotification( | 420 DispatchPrefChangeNotification( |
| 422 proxy_cros_settings_parser::kProxySettings[i], std::move(ptr)); | 421 proxy_cros_settings_parser::kProxySettings[i], std::move(ptr)); |
| 423 } | 422 } |
| 424 } | 423 } |
| 425 | 424 |
| 426 } // namespace options | 425 } // namespace options |
| 427 } // namespace chromeos | 426 } // namespace chromeos |
| OLD | NEW |