| 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 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/cros/network_ui_data.h" | 9 #include "chrome/browser/chromeos/cros/network_ui_data.h" |
| 10 #include "chrome/browser/policy/configuration_policy_handler.h" | 10 #include "chrome/browser/policy/configuration_policy_handler.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Filters a network dictionary to remove all sensitive fields and replace | 38 // Filters a network dictionary to remove all sensitive fields and replace |
| 39 // their values with placeholders. | 39 // their values with placeholders. |
| 40 static void StripSensitiveValues(DictionaryValue* network_dict); | 40 static void StripSensitiveValues(DictionaryValue* network_dict); |
| 41 | 41 |
| 42 chromeos::NetworkUIData::ONCSource onc_source_; | 42 chromeos::NetworkUIData::ONCSource onc_source_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationPolicyHandler); | 44 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationPolicyHandler); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // Maps the PinnedLauncherApps policy to the corresponding pref. |
| 48 class PinnedLauncherAppsPolicyHandler : public ExtensionListPolicyHandler { |
| 49 public: |
| 50 PinnedLauncherAppsPolicyHandler(); |
| 51 virtual ~PinnedLauncherAppsPolicyHandler(); |
| 52 |
| 53 // ExtensionListPolicyHandler methods: |
| 54 virtual void ApplyPolicySettings(const PolicyMap& policies, |
| 55 PrefValueMap* prefs) OVERRIDE; |
| 56 |
| 57 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(PinnedLauncherAppsPolicyHandler); |
| 59 }; |
| 60 |
| 47 } // namespace policy | 61 } // namespace policy |
| 48 | 62 |
| 49 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ | 63 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ |
| OLD | NEW |