Index: chrome/browser/resources/options/cookies_view.js |
diff --git a/chrome/browser/resources/options/cookies_view.js b/chrome/browser/resources/options/cookies_view.js |
index 4d496684c428f87e17841876cdf7252ac3be9fa6..ba78a0da0e23c85af84bbc1d21eb84a3a47c3d35 100644 |
--- a/chrome/browser/resources/options/cookies_view.js |
+++ b/chrome/browser/resources/options/cookies_view.js |
@@ -88,6 +88,15 @@ cr.define('options', function() { |
* @private |
*/ |
handleSearchQueryChange_: function(e) { |
+ var content = document.querySelector('.cookies-search-box').value; |
+ if (content) { |
+ document.querySelector('.remove-all-cookies-button').innerHTML = |
+ loadTimeData.getString('remove_all_shown_cookie'); |
+ } |
+ else { |
+ document.querySelector('.remove-all-cookies-button').innerHTML = |
+ loadTimeData.getString('remove_all_cookie'); |
+ } |
Dan Beam
2014/05/24 02:03:52
i think you can shave some lines with this:
var s
Dan Beam
2014/05/27 21:04:31
what happened to re-writing the code like this? ^
|
if (this.queryDelayTimerId_) |
window.clearTimeout(this.queryDelayTimerId_); |