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

Unified Diff: chrome/browser/resources/options/clear_browser_data.js

Issue 6122008: Also delete plugin data when the cookies checkbox in the clear browsing data dialog is checked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 11 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/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);
« no previous file with comments | « chrome/browser/resources/options/clear_browser_data.html ('k') | chrome/browser/sync/glue/synchronized_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698