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

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

Issue 3167028: Fix bug in ImportingData Overlay (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: sync Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 8
9 /** 9 /**
10 * ImportDataOverlay class 10 * ImportDataOverlay class
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 var option = new Option(browser['name'], browser['index']); 102 var option = new Option(browser['name'], browser['index']);
103 browserSelect.appendChild(option); 103 browserSelect.appendChild(option);
104 104
105 ImportDataOverlay.setDisable(false); 105 ImportDataOverlay.setDisable(false);
106 this.countCheckboxes_(); 106 this.countCheckboxes_();
107 } 107 }
108 } 108 }
109 }, 109 },
110 }; 110 };
111 111
112 ImportDataOverlay.loadImporter = function() {
113 chrome.send('loadImporter');
114 };
115
112 ImportDataOverlay.updateSupportedBrowsers = function(browsers) { 116 ImportDataOverlay.updateSupportedBrowsers = function(browsers) {
113 ImportDataOverlay.getInstance().updateSupportedBrowsers_(browsers); 117 ImportDataOverlay.getInstance().updateSupportedBrowsers_(browsers);
114 }; 118 };
115 119
116 ImportDataOverlay.setDisable = function(state) { 120 ImportDataOverlay.setDisable = function(state) {
117 $('supported-browsers').disabled = state; 121 $('supported-browsers').disabled = state;
118 $('import-favorites').disabled = state; 122 $('import-favorites').disabled = state;
119 $('import-search').disabled = state; 123 $('import-search').disabled = state;
120 $('import-passwords').disabled = state; 124 $('import-passwords').disabled = state;
121 $('import-history').disabled = state; 125 $('import-history').disabled = state;
(...skipping 12 matching lines...) Expand all
134 } 138 }
135 if (state) { 139 if (state) {
136 ImportDataOverlay.throbIntervalId = 140 ImportDataOverlay.throbIntervalId =
137 setInterval(advanceThrobber, 30); 141 setInterval(advanceThrobber, 30);
138 } else { 142 } else {
139 clearInterval(ImportDataOverlay.throbIntervalId); 143 clearInterval(ImportDataOverlay.throbIntervalId);
140 } 144 }
141 }; 145 };
142 146
143 ImportDataOverlay.dismiss = function() { 147 ImportDataOverlay.dismiss = function() {
148 ImportDataOverlay.setImportingState(false);
144 OptionsPage.clearOverlays(); 149 OptionsPage.clearOverlays();
145 ImportDataOverlay.setImportingState(false);
146 } 150 }
147 151
148 // Export 152 // Export
149 return { 153 return {
150 ImportDataOverlay: ImportDataOverlay 154 ImportDataOverlay: ImportDataOverlay
151 }; 155 };
152 156
153 }); 157 });
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/import_data_handler.cc ('k') | chrome/browser/resources/options/personal_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698