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

Unified Diff: chrome/browser/resources/shared/js/chromeos/ui_account_tweaks.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/shared/js/chromeos/ui_account_tweaks.js
diff --git a/chrome/browser/resources/shared/js/chromeos/ui_account_tweaks.js b/chrome/browser/resources/shared/js/chromeos/ui_account_tweaks.js
index 4ca2204f86a35696905d96e78c85ad8547c51c37..1ac79f4974527e1a5c8739b498d15c9764d3e857 100644
--- a/chrome/browser/resources/shared/js/chromeos/ui_account_tweaks.js
+++ b/chrome/browser/resources/shared/js/chromeos/ui_account_tweaks.js
@@ -6,7 +6,7 @@
* @fileoverview This file contains methods that allow to tweak
* internal page UI based on the status of current user (owner/user/guest).
* It is assumed that required data is passed via i18n strings
- * (using templateData variable) that are filled with call to
+ * (using loadTimeData dictionary) that are filled with call to
* AddAccountUITweaksLocalizedValues in ui_account_tweaks.cc.
* It is also assumed that tweaked page has chrome://resources/css/widgets.css
* included.
@@ -28,14 +28,14 @@ cr.define('uiAccountTweaks', function() {
* @return {boolean} Whether the current user is owner or not.
*/
UIAccountTweaks.currentUserIsOwner = function() {
- return templateData['currentUserIsOwner'] == 'true';
+ return loadTimeData.getBoolean('currentUserIsOwner');
};
/**
* @return {boolean} Whether we're currently in guest mode.
*/
UIAccountTweaks.loggedInAsGuest = function() {
- return templateData['loggedInAsGuest'] == 'true';
+ return loadTimeData.getBoolean('loggedInAsGuest');
};
/**

Powered by Google App Engine
This is Rietveld 408576698