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

Side by Side Diff: chrome/browser/resources/options/chromeos/onc_data.js

Issue 694533007: Add 'setProperties' to InternetOptionsHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * @fileoverview ONC Data support class. Wraps a dictionary object containing 6 * @fileoverview ONC Data support class. Wraps a dictionary object containing
7 * ONC managed or unmanaged dictionaries. Supports nested dictionaries, 7 * ONC managed or unmanaged dictionaries. Supports nested dictionaries,
8 * e.g. data.getManagedProperty('VPN.Type'). 8 * e.g. data.getManagedProperty('VPN.Type').
9 */ 9 */
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 * @return {?} The effective value or undefined. 170 * @return {?} The effective value or undefined.
171 * @private 171 * @private
172 */ 172 */
173 getEffectiveValueFromProperty_: function(property) { 173 getEffectiveValueFromProperty_: function(property) {
174 if ('Effective' in property) { 174 if ('Effective' in property) {
175 var effective = property.Effective; 175 var effective = property.Effective;
176 if (effective in property) 176 if (effective in property)
177 return property[effective]; 177 return property[effective];
178 } 178 }
179 return undefined; 179 return undefined;
180 },
181
182 /**
183 * Returns the comple ONC dictionary.
pneubeck (no reviews) 2014/11/11 16:09:31 comple ? maybe 'complete'
stevenjb 2014/11/12 01:23:29 Complete. Done.
184 */
185 getData: function() {
186 return this.data_;
180 } 187 }
181 }; 188 };
182 189
183 return { 190 return {
184 OncData: OncData 191 OncData: OncData
185 }; 192 };
186 }); 193 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698