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

Side by Side Diff: chrome/browser/resources/options2/session_restore_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 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 7
8 function SessionRestoreOverlay() { 8 function SessionRestoreOverlay() {
9 OptionsPage.call(this, 'sessionRestoreOverlay', 9 OptionsPage.call(this, 'sessionRestoreOverlay',
10 templateData.sessionRestoreOverlayTitle, 10 loadTimeData.getString('sessionRestoreOverlayTitle'),
11 'sessionRestoreOverlay'); 11 'sessionRestoreOverlay');
12 }; 12 };
13 13
14 cr.addSingletonGetter(SessionRestoreOverlay); 14 cr.addSingletonGetter(SessionRestoreOverlay);
15 15
16 SessionRestoreOverlay.prototype = { 16 SessionRestoreOverlay.prototype = {
17 // Inherit from OptionsPage. 17 // Inherit from OptionsPage.
18 __proto__: OptionsPage.prototype, 18 __proto__: OptionsPage.prototype,
19 19
20 initializePage: function() { 20 initializePage: function() {
21 OptionsPage.prototype.initializePage.call(this); 21 OptionsPage.prototype.initializePage.call(this);
22 22
23 $('sessionRestoreOverlayCancel').onclick = function() { 23 $('sessionRestoreOverlayCancel').onclick = function() {
24 BrowserOptions.getInstance().sessionRestoreDialogCancel(); 24 BrowserOptions.getInstance().sessionRestoreDialogCancel();
25 OptionsPage.closeOverlay(); 25 OptionsPage.closeOverlay();
26 }; 26 };
27 27
28 $('sessionRestoreOverlayOk').onclick = function() { 28 $('sessionRestoreOverlayOk').onclick = function() {
29 BrowserOptions.getInstance().sessionRestoreDialogOk(); 29 BrowserOptions.getInstance().sessionRestoreDialogOk();
30 OptionsPage.closeOverlay(); 30 OptionsPage.closeOverlay();
31 }; 31 };
32 }, 32 },
33 }; 33 };
34 34
35 // Export 35 // Export
36 return { 36 return {
37 SessionRestoreOverlay: SessionRestoreOverlay 37 SessionRestoreOverlay: SessionRestoreOverlay
38 }; 38 };
39 }); 39 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/search_page.js ('k') | chrome/browser/resources/options2/spelling_confirm_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698