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

Side by Side Diff: chrome/browser/resources/options2/chromeos/set_wallpaper_options.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 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 var UserImagesGrid = options.UserImagesGrid; 8 var UserImagesGrid = options.UserImagesGrid;
9 9
10 ///////////////////////////////////////////////////////////////////////////// 10 /////////////////////////////////////////////////////////////////////////////
11 // SetWallpaperOptions class: 11 // SetWallpaperOptions class:
12 12
13 /** 13 /**
14 * Encapsulated handling of ChromeOS set wallpaper options page. 14 * Encapsulated handling of ChromeOS set wallpaper options page.
15 * @constructor 15 * @constructor
16 */ 16 */
17 function SetWallpaperOptions() { 17 function SetWallpaperOptions() {
18 OptionsPage.call( 18 OptionsPage.call(
19 this, 19 this,
20 'setWallpaper', 20 'setWallpaper',
21 localStrings.getString('setWallpaper'), 21 loadTimeData.getString('setWallpaper'),
22 'set-wallpaper-page'); 22 'set-wallpaper-page');
23 } 23 }
24 24
25 cr.addSingletonGetter(SetWallpaperOptions); 25 cr.addSingletonGetter(SetWallpaperOptions);
26 26
27 SetWallpaperOptions.prototype = { 27 SetWallpaperOptions.prototype = {
28 // Inherit SetWallpaperOptions from OptionsPage. 28 // Inherit SetWallpaperOptions from OptionsPage.
29 __proto__: options.OptionsPage.prototype, 29 __proto__: options.OptionsPage.prototype,
30 30
31 /** 31 /**
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 }; 191 };
192 }); 192 });
193 193
194 // Export 194 // Export
195 return { 195 return {
196 SetWallpaperOptions: SetWallpaperOptions 196 SetWallpaperOptions: SetWallpaperOptions
197 }; 197 };
198 198
199 }); 199 });
200 200
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698