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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_chromeos.cc

Issue 10928103: Strip vpn.openvpn.TLSAuthContents in chrome://policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/policy/configuration_policy_handler_chromeos.h" 5 #include "chrome/browser/policy/configuration_policy_handler_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void NetworkConfigurationPolicyHandler::MaskSensitiveValues( 116 void NetworkConfigurationPolicyHandler::MaskSensitiveValues(
117 base::DictionaryValue* network_dict) { 117 base::DictionaryValue* network_dict) {
118 // Paths of the properties to be replaced by the placeholder. Each entry 118 // Paths of the properties to be replaced by the placeholder. Each entry
119 // specifies dictionary key paths. 119 // specifies dictionary key paths.
120 static const int kMaxComponents = 3; 120 static const int kMaxComponents = 3;
121 static const char* kFilteredSettings[][kMaxComponents] = { 121 static const char* kFilteredSettings[][kMaxComponents] = {
122 { onc::kEthernet, onc::ethernet::kEAP, onc::eap::kPassword }, 122 { onc::kEthernet, onc::ethernet::kEAP, onc::eap::kPassword },
123 { onc::kVPN, onc::vpn::kIPsec, onc::vpn::kPSK }, 123 { onc::kVPN, onc::vpn::kIPsec, onc::vpn::kPSK },
124 { onc::kVPN, onc::vpn::kL2TP, onc::vpn::kPassword }, 124 { onc::kVPN, onc::vpn::kL2TP, onc::vpn::kPassword },
125 { onc::kVPN, onc::vpn::kOpenVPN, onc::vpn::kPassword }, 125 { onc::kVPN, onc::vpn::kOpenVPN, onc::vpn::kPassword },
126 { onc::kVPN, onc::vpn::kOpenVPN, onc::vpn::kTLSAuthContents },
126 { onc::kWiFi, onc::wifi::kEAP, onc::eap::kPassword }, 127 { onc::kWiFi, onc::wifi::kEAP, onc::eap::kPassword },
127 { onc::kWiFi, onc::wifi::kPassphrase }, 128 { onc::kWiFi, onc::wifi::kPassphrase },
128 }; 129 };
129 130
130 // Placeholder to insert in place of the filtered setting. 131 // Placeholder to insert in place of the filtered setting.
131 static const char kPlaceholder[] = "********"; 132 static const char kPlaceholder[] = "********";
132 133
133 for (size_t i = 0; i < arraysize(kFilteredSettings); ++i) { 134 for (size_t i = 0; i < arraysize(kFilteredSettings); ++i) {
134 const char** path = kFilteredSettings[i]; 135 const char** path = kFilteredSettings[i];
135 base::DictionaryValue* dict = network_dict; 136 base::DictionaryValue* dict = network_dict;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 base::DictionaryValue* app_dict = new base::DictionaryValue(); 170 base::DictionaryValue* app_dict = new base::DictionaryValue();
170 app_dict->SetString(ash::kPinnedAppsPrefAppIDPath, id); 171 app_dict->SetString(ash::kPinnedAppsPrefAppIDPath, id);
171 pinned_apps_list->Append(app_dict); 172 pinned_apps_list->Append(app_dict);
172 } 173 }
173 } 174 }
174 prefs->SetValue(pref_path(), pinned_apps_list); 175 prefs->SetValue(pref_path(), pinned_apps_list);
175 } 176 }
176 } 177 }
177 178
178 } // namespace policy 179 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698