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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 1684063002: Add ArcEnabled policy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@26869593
Patch Set: Added browser test. Created 4 years, 10 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
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 cr.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{actionLinkText: (string|undefined), 8 * @typedef {{actionLinkText: (string|undefined),
9 * childUser: (boolean|undefined), 9 * childUser: (boolean|undefined),
10 * hasError: (boolean|undefined), 10 * hasError: (boolean|undefined),
(...skipping 2306 matching lines...) Expand 10 before | Expand all | Expand 10 after
2317 break; 2317 break;
2318 case ConsumerManagementOverlay.Status.STATUS_UNENROLLING: 2318 case ConsumerManagementOverlay.Status.STATUS_UNENROLLING:
2319 strId = 'consumerManagementUnenrollingButton'; 2319 strId = 'consumerManagementUnenrollingButton';
2320 button.disabled = true; 2320 button.disabled = true;
2321 break; 2321 break;
2322 } 2322 }
2323 button.textContent = loadTimeData.getString(strId); 2323 button.textContent = loadTimeData.getString(strId);
2324 }; 2324 };
2325 2325
2326 /** 2326 /**
2327 * Hides Android Apps settings when they are not available (ChromeOS only). 2327 * Hides Android Apps settings when they are not available. (ChromeOS only).
bartfab (slow) 2016/03/02 14:45:40 Nit, while you are here: s/ChromeOS/Chrome OS/
Polina Bondarenko 2016/03/06 20:22:33 Done.
2328 */ 2328 */
2329 BrowserOptions.hideAndroidAppsSection = function() { 2329 BrowserOptions.hideAndroidAppsSection = function() {
2330 var section = $('andorid-apps-section'); 2330 var section = $('android-apps-section');
2331 if (section) 2331 if (section)
2332 section.hidden = true; 2332 section.hidden = true;
2333 }; 2333 };
2334 } 2334 }
2335 2335
2336 // Export 2336 // Export
2337 return { 2337 return {
2338 BrowserOptions: BrowserOptions 2338 BrowserOptions: BrowserOptions
2339 }; 2339 };
2340 }); 2340 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698