Index: chrome/browser/resources/options/clear_browser_data.js |
diff --git a/chrome/browser/resources/options/clear_browser_data.js b/chrome/browser/resources/options/clear_browser_data.js |
index aeae33ea3eb9cd89711024f805fe383b81face74..1e37cdfb8a1afb3b643d056aed3d73ef478eaa5b 100644 |
--- a/chrome/browser/resources/options/clear_browser_data.js |
+++ b/chrome/browser/resources/options/clear_browser_data.js |
@@ -35,7 +35,7 @@ cr.define('options', function() { |
// The time period is stored as a number. |
$('clearBrowsingDataTimePeriod').dataType = 'number'; |
- var f = this.updateCommitButtonState_.bind(this); |
+ var updateCommitButton = this.updateCommitButtonState_.bind(this); |
var types = ['browser.clear_data.browsing_history', |
'browser.clear_data.download_history', |
'browser.clear_data.cache', |
@@ -43,15 +43,15 @@ cr.define('options', function() { |
'browser.clear_data.passwords', |
'browser.clear_data.form_data']; |
types.forEach(function(type) { |
- Preferences.getInstance().addEventListener(type, f); |
+ Preferences.getInstance().addEventListener(type, updateCommitButton); |
}); |
var checkboxes = document.querySelectorAll( |
'#checkboxListData input[type=checkbox]'); |
for (var i = 0; i < checkboxes.length; i++) { |
- checkboxes[i].onclick = f; |
+ checkboxes[i].onclick = updateCommitButton; |
} |
- this.updateCommitButtonState_(); |
+ updateCommitButton(); |
// Setup click handler for the clear(Ok) button. |
$('clearBrowsingDataCommit').onclick = function(event) { |
@@ -107,6 +107,10 @@ cr.define('options', function() { |
} |
} |
+ ClearBrowserDataPage.setClearLocalDataLabel = function(label) { |
+ $('deleteCookiesLabel').innerText = label; |
+ }; |
+ |
ClearBrowserDataPage.dismiss = function() { |
OptionsPage.clearOverlays(); |
this.setClearingState(false); |