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

Unified Diff: chrome/browser/resources/options2/import_data_overlay.js

Issue 9316086: Fix JavaScript errors in options2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new violations found after rebase Created 8 years, 10 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/options2/import_data_overlay.js
diff --git a/chrome/browser/resources/options2/import_data_overlay.js b/chrome/browser/resources/options2/import_data_overlay.js
index 2671aad956c1fcecf6bbc700a5a09de22afe33f9..4fb8d3b5623b17a392bffc92f2726fc0f1872a73 100644
--- a/chrome/browser/resources/options2/import_data_overlay.js
+++ b/chrome/browser/resources/options2/import_data_overlay.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -102,7 +102,7 @@ cr.define('options', function() {
* @private
*/
setUpCheckboxState_: function(checkbox, enabled) {
- checkbox.setDisabled("noProfileData", !enabled);
+ checkbox.setDisabled('noProfileData', !enabled);
},
/**
@@ -142,7 +142,7 @@ cr.define('options', function() {
} else {
this.setControlsSensitive_(true);
for (var i = 0; i < browserCount; i++) {
- var browser = browsers[i]
+ var browser = browsers[i];
var option = new Option(browser['name'], browser['index']);
browserSelect.appendChild(option);
}
@@ -188,11 +188,11 @@ cr.define('options', function() {
var checkboxes =
document.querySelectorAll('#import-checkboxes input[type=checkbox]');
for (var i = 0; i < checkboxes.length; i++)
- checkboxes[i].setDisabled("Importing", state);
+ checkboxes[i].setDisabled('Importing', state);
if (!state)
ImportDataOverlay.getInstance().updateCheckboxes_();
$('import-browsers').disabled = state;
- $('import-throbber').style.visibility = state ? "visible" : "hidden";
+ $('import-throbber').style.visibility = state ? 'visible' : 'hidden';
ImportDataOverlay.getInstance().validateCommitButton_();
};
« no previous file with comments | « chrome/browser/resources/options2/handler_options_list.js ('k') | chrome/browser/resources/options2/inline_editable_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698