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

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

Issue 10391044: retry 136193 - convert localStrings to loadTimeData for options page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 // The GUID of the loaded credit card. 8 // The GUID of the loaded credit card.
9 var guid_; 9 var guid_;
10 10
11 /** 11 /**
12 * AutofillEditCreditCardOverlay class 12 * AutofillEditCreditCardOverlay class
13 * Encapsulated handling of the 'Add Page' overlay page. 13 * Encapsulated handling of the 'Add Page' overlay page.
14 * @class 14 * @class
15 */ 15 */
16 function AutofillEditCreditCardOverlay() { 16 function AutofillEditCreditCardOverlay() {
17 OptionsPage.call(this, 'autofillEditCreditCard', 17 OptionsPage.call(this, 'autofillEditCreditCard',
18 templateData.autofillEditCreditCardTitle, 18 loadTimeData.getString('autofillEditCreditCardTitle'),
19 'autofill-edit-credit-card-overlay'); 19 'autofill-edit-credit-card-overlay');
20 } 20 }
21 21
22 cr.addSingletonGetter(AutofillEditCreditCardOverlay); 22 cr.addSingletonGetter(AutofillEditCreditCardOverlay);
23 23
24 AutofillEditCreditCardOverlay.prototype = { 24 AutofillEditCreditCardOverlay.prototype = {
25 __proto__: OptionsPage.prototype, 25 __proto__: OptionsPage.prototype,
26 26
27 /** 27 /**
28 * Initializes the page. 28 * Initializes the page.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 AutofillEditCreditCardOverlay.setTitle = function(title) { 197 AutofillEditCreditCardOverlay.setTitle = function(title) {
198 $('autofill-credit-card-title').textContent = title; 198 $('autofill-credit-card-title').textContent = title;
199 }; 199 };
200 200
201 // Export 201 // Export
202 return { 202 return {
203 AutofillEditCreditCardOverlay: AutofillEditCreditCardOverlay 203 AutofillEditCreditCardOverlay: AutofillEditCreditCardOverlay
204 }; 204 };
205 }); 205 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698