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

Side by Side Diff: chrome/browser/resources/extensions/extensions.js

Issue 9694038: OBSOLETE REVIEW. See http://codereview.chromium.org/10382149/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 <include src="../uber/uber_utils.js"></include> 5 <include src="../uber/uber_utils.js"></include>
6 <include src="extension_list.js"></include> 6 <include src="extension_list.js"></include>
7 <include src="pack_extension_overlay.js"></include> 7 <include src="pack_extension_overlay.js"></include>
8 8
9 // Used for observing function of the backend datasource for this page by 9 // Used for observing function of the backend datasource for this page by
10 // tests. 10 // tests.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 if (a.order == b.order) { 181 if (a.order == b.order) {
182 a = a.name.toLowerCase(); 182 a = a.name.toLowerCase();
183 b = b.name.toLowerCase(); 183 b = b.name.toLowerCase();
184 return a < b ? -1 : (a > b ? 1 : 0); 184 return a < b ? -1 : (a > b ? 1 : 0);
185 } else { 185 } else {
186 return a.order < b.order ? -1 : 1; 186 return a.order < b.order ? -1 : 1;
187 } 187 }
188 }); 188 });
189 } 189 }
190 190
191 if (extensionsData.developerMode) { 191 var developer_mode = extensionsData.developerMode;
192 if (extensionsData.managedMode) {
193 $('managed-mode-message').hidden = false;
194 $('toggle-dev-on').disabled = true;
195 $('get-more-extensions').hidden = true;
196 $('suggest-gallery').hidden = true;
197 developer_mode = false;
Evan Stade 2012/03/13 21:02:07 duplicate logic?
198 }
199
200 if (developer_mode) {
192 $('toggle-dev-on').checked = true; 201 $('toggle-dev-on').checked = true;
193 $('extension-settings').classList.add('dev-mode'); 202 $('extension-settings').classList.add('dev-mode');
194 $('dev-controls').hidden = false; 203 $('dev-controls').hidden = false;
195 } else { 204 } else {
196 $('toggle-dev-on').checked = false; 205 $('toggle-dev-on').checked = false;
197 $('extension-settings').classList.remove('dev-mode'); 206 $('extension-settings').classList.remove('dev-mode');
198 } 207 }
199 208
200 ExtensionsList.prototype.data_ = extensionsData; 209 ExtensionsList.prototype.data_ = extensionsData;
201 var extensionList = $('extension-settings-list'); 210 var extensionList = $('extension-settings-list');
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ExtensionSettings: ExtensionSettings 257 ExtensionSettings: ExtensionSettings
249 }; 258 };
250 }); 259 });
251 260
252 var ExtensionSettings = extensions.ExtensionSettings; 261 var ExtensionSettings = extensions.ExtensionSettings;
253 262
254 // 'load' seems to have a bad interaction with open_sans.woff. 263 // 'load' seems to have a bad interaction with open_sans.woff.
255 window.addEventListener('DOMContentLoaded', function(e) { 264 window.addEventListener('DOMContentLoaded', function(e) {
256 ExtensionSettings.getInstance().initialize(); 265 ExtensionSettings.getInstance().initialize();
257 }); 266 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698