Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: chrome/browser/policy/network_configuration_updater.cc

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/network_configuration_updater.cc
diff --git a/chrome/browser/policy/network_configuration_updater.cc b/chrome/browser/policy/network_configuration_updater.cc
index 7b1fe5f79cd86e0bb8330cb057418430b9eb0237..152927acee8b481610564f73ef95ee31bc08e6c5 100644
--- a/chrome/browser/policy/network_configuration_updater.cc
+++ b/chrome/browser/policy/network_configuration_updater.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -38,21 +38,21 @@ void NetworkConfigurationUpdater::Update() {
return;
}
- ApplyNetworkConfiguration(policy, kPolicyDeviceOpenNetworkConfiguration,
+ ApplyNetworkConfiguration(policy, key::kDeviceOpenNetworkConfiguration,
chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY,
&device_network_config_);
- ApplyNetworkConfiguration(policy, kPolicyOpenNetworkConfiguration,
+ ApplyNetworkConfiguration(policy, key::kOpenNetworkConfiguration,
chromeos::NetworkUIData::ONC_SOURCE_USER_POLICY,
&user_network_config_);
}
void NetworkConfigurationUpdater::ApplyNetworkConfiguration(
const PolicyMap& policy_map,
- ConfigurationPolicyType policy_type,
+ const char* policy_name,
chromeos::NetworkUIData::ONCSource onc_source,
std::string* cached_value) {
std::string new_network_config;
- const base::Value* value = policy_map.Get(policy_type);
+ const base::Value* value = policy_map.GetValue(policy_name);
if (value != NULL) {
// If the policy is not a string, we issue a warning, but still clear the
// network configuration.
« no previous file with comments | « chrome/browser/policy/network_configuration_updater.h ('k') | chrome/browser/policy/network_configuration_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698