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

Side by Side Diff: chrome/browser/resources/options/import_data_overlay.js

Issue 517413002: Compile chrome://settings, part 1: remove all warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: s/event/Event/ Created 6 years, 3 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
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 Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * ImportDataOverlay class 10 * ImportDataOverlay class
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 if (this.browserProfiles.length > index) 146 if (this.browserProfiles.length > index)
147 browserProfile = this.browserProfiles[index]; 147 browserProfile = this.browserProfiles[index];
148 var enable = browserProfile && browserProfile['show_bottom_bar']; 148 var enable = browserProfile && browserProfile['show_bottom_bar'];
149 <if expr="is_macosx"> 149 <if expr="is_macosx">
150 $('mac-password-keychain').hidden = !enable; 150 $('mac-password-keychain').hidden = !enable;
151 </if> 151 </if>
152 }, 152 },
153 153
154 /** 154 /**
155 * Update the supported browsers popup with given entries. 155 * Update the supported browsers popup with given entries.
156 * @param {array} browsers List of supported browsers name. 156 * @param {Array} browsers List of supported browsers name.
157 * @private 157 * @private
158 */ 158 */
159 updateSupportedBrowsers_: function(browsers) { 159 updateSupportedBrowsers_: function(browsers) {
160 this.browserProfiles = browsers; 160 this.browserProfiles = browsers;
161 var browserSelect = $('import-browsers'); 161 var browserSelect = $('import-browsers');
162 browserSelect.remove(0); // Remove the 'Loading...' option. 162 browserSelect.remove(0); // Remove the 'Loading...' option.
163 browserSelect.textContent = ''; 163 browserSelect.textContent = '';
164 var browserCount = browsers.length; 164 var browserCount = browsers.length;
165 165
166 if (browserCount == 0) { 166 if (browserCount == 0) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 sections[i].hidden = !success; 213 sections[i].hidden = !success;
214 }, 214 },
215 }; 215 };
216 216
217 ImportDataOverlay.clearUserPrefs = function() { 217 ImportDataOverlay.clearUserPrefs = function() {
218 ImportDataOverlay.getInstance().clearUserPrefs_(); 218 ImportDataOverlay.getInstance().clearUserPrefs_();
219 }; 219 };
220 220
221 /** 221 /**
222 * Update the supported browsers popup with given entries. 222 * Update the supported browsers popup with given entries.
223 * @param {array} list of supported browsers name. 223 * @param {Array} browsers List of supported browsers name.
224 */ 224 */
225 ImportDataOverlay.updateSupportedBrowsers = function(browsers) { 225 ImportDataOverlay.updateSupportedBrowsers = function(browsers) {
226 ImportDataOverlay.getInstance().updateSupportedBrowsers_(browsers); 226 ImportDataOverlay.getInstance().updateSupportedBrowsers_(browsers);
227 }; 227 };
228 228
229 /** 229 /**
230 * Update the UI to reflect whether an import operation is in progress. 230 * Update the UI to reflect whether an import operation is in progress.
231 * @param {boolean} importing True if an import operation is in progress. 231 * @param {boolean} importing True if an import operation is in progress.
232 */ 232 */
233 ImportDataOverlay.setImportingState = function(importing) { 233 ImportDataOverlay.setImportingState = function(importing) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 ImportDataOverlay.getInstance().validateCommitButton_(); 270 ImportDataOverlay.getInstance().validateCommitButton_();
271 271
272 PageManager.showPageByName('importData'); 272 PageManager.showPageByName('importData');
273 }; 273 };
274 274
275 // Export 275 // Export
276 return { 276 return {
277 ImportDataOverlay: ImportDataOverlay 277 ImportDataOverlay: ImportDataOverlay
278 }; 278 };
279 }); 279 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698