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 src="../uber/uber_utils.js"></include> | 5 <include src="../uber/uber_utils.js"></include> |
6 <include src="extension_code.js"></include> | 6 <include src="extension_code.js"></include> |
7 <include src="extension_commands_overlay.js"></include> | 7 <include src="extension_commands_overlay.js"></include> |
8 <include src="extension_focus_manager.js"></include> | 8 <include src="extension_focus_manager.js"></include> |
9 <include src="extension_list.js"></include> | 9 <include src="extension_list.js"></include> |
10 <include src="pack_extension_overlay.js"></include> | 10 <include src="pack_extension_overlay.js"></include> |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 return x < y ? -1 : (x > y ? 1 : 0); | 296 return x < y ? -1 : (x > y ? 1 : 0); |
297 } | 297 } |
298 return compare(a.order, b.order) || | 298 return compare(a.order, b.order) || |
299 compare(a.name.toLowerCase(), b.name.toLowerCase()) || | 299 compare(a.name.toLowerCase(), b.name.toLowerCase()) || |
300 compare(a.id, b.id); | 300 compare(a.id, b.id); |
301 }); | 301 }); |
302 } | 302 } |
303 | 303 |
304 var pageDiv = $('extension-settings'); | 304 var pageDiv = $('extension-settings'); |
305 var marginTop = 0; | 305 var marginTop = 0; |
306 if (extensionsData.profileIsManaged) { | 306 if (extensionsData.profileIsSupervised) { |
307 pageDiv.classList.add('profile-is-managed'); | 307 pageDiv.classList.add('profile-is-supervised'); |
308 } else { | 308 } else { |
309 pageDiv.classList.remove('profile-is-managed'); | 309 pageDiv.classList.remove('profile-is-supervised'); |
310 } | 310 } |
311 if (extensionsData.profileIsManaged) { | 311 if (extensionsData.profileIsSupervised) { |
312 pageDiv.classList.add('showing-banner'); | 312 pageDiv.classList.add('showing-banner'); |
313 $('toggle-dev-on').disabled = true; | 313 $('toggle-dev-on').disabled = true; |
314 marginTop += 45; | 314 marginTop += 45; |
315 } else { | 315 } else { |
316 pageDiv.classList.remove('showing-banner'); | 316 pageDiv.classList.remove('showing-banner'); |
317 $('toggle-dev-on').disabled = false; | 317 $('toggle-dev-on').disabled = false; |
318 } | 318 } |
319 | 319 |
320 pageDiv.style.marginTop = marginTop + 'px'; | 320 pageDiv.style.marginTop = marginTop + 'px'; |
321 | 321 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 434 |
435 // Export | 435 // Export |
436 return { | 436 return { |
437 ExtensionSettings: ExtensionSettings | 437 ExtensionSettings: ExtensionSettings |
438 }; | 438 }; |
439 }); | 439 }); |
440 | 440 |
441 window.addEventListener('load', function(e) { | 441 window.addEventListener('load', function(e) { |
442 extensions.ExtensionSettings.getInstance().initialize(); | 442 extensions.ExtensionSettings.getInstance().initialize(); |
443 }); | 443 }); |
OLD | NEW |