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

Side by Side Diff: chrome/browser/resources/options2/options_page.js

Issue 10391044: retry 136193 - convert localStrings to loadTimeData for options page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: plugins, ui_account_tweaks fixes Created 8 years, 7 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
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.define('options', function() { 5 cr.define('options', function() {
6 ///////////////////////////////////////////////////////////////////////////// 6 /////////////////////////////////////////////////////////////////////////////
7 // OptionsPage class: 7 // OptionsPage class:
8 8
9 /** 9 /**
10 * Base class for options page. 10 * Base class for options page.
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 controlledByExtension = true; 670 controlledByExtension = true;
671 } 671 }
672 672
673 if (!controlledByPolicy && !controlledByExtension) { 673 if (!controlledByPolicy && !controlledByExtension) {
674 this.pageDiv.classList.remove('showing-banner'); 674 this.pageDiv.classList.remove('showing-banner');
675 } else { 675 } else {
676 this.pageDiv.classList.add('showing-banner'); 676 this.pageDiv.classList.add('showing-banner');
677 677
678 var text = bannerDiv.querySelector('.managed-prefs-text'); 678 var text = bannerDiv.querySelector('.managed-prefs-text');
679 if (controlledByPolicy && !controlledByExtension) { 679 if (controlledByPolicy && !controlledByExtension) {
680 text.textContent = templateData.policyManagedPrefsBannerText; 680 text.textContent =
681 loadTimeData.getString('policyManagedPrefsBannerText');
681 } else if (!controlledByPolicy && controlledByExtension) { 682 } else if (!controlledByPolicy && controlledByExtension) {
682 text.textContent = templateData.extensionManagedPrefsBannerText; 683 text.textContent =
684 loadTimeData.getString('extensionManagedPrefsBannerText');
683 } else if (controlledByPolicy && controlledByExtension) { 685 } else if (controlledByPolicy && controlledByExtension) {
684 text.textContent = 686 text.textContent = loadTimeData.getString(
685 templateData.policyAndExtensionManagedPrefsBannerText; 687 'policyAndExtensionManagedPrefsBannerText');
686 } 688 }
687 } 689 }
688 }, 690 },
689 691
690 /** 692 /**
691 * Gets the container div for this page if it is an overlay. 693 * Gets the container div for this page if it is an overlay.
692 * @type {HTMLElement} 694 * @type {HTMLElement}
693 */ 695 */
694 get container() { 696 get container() {
695 assert(this.isOverlay); 697 assert(this.isOverlay);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 canShowPage: function() { 858 canShowPage: function() {
857 return true; 859 return true;
858 }, 860 },
859 }; 861 };
860 862
861 // Export 863 // Export
862 return { 864 return {
863 OptionsPage: OptionsPage 865 OptionsPage: OptionsPage
864 }; 866 };
865 }); 867 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698