Index: chrome/browser/resources/options/options.js |
diff --git a/chrome/browser/resources/options/options.js b/chrome/browser/resources/options/options.js |
index 162e533116225fded3824c12e375b6434238a73d..965826bae9bbb232e222d15f22af8ec46980fb0e 100644 |
--- a/chrome/browser/resources/options/options.js |
+++ b/chrome/browser/resources/options/options.js |
@@ -211,3 +211,7 @@ document.addEventListener('DOMContentLoaded', load); |
window.onpopstate = function(e) { |
options.OptionsPage.setState(e.state); |
}; |
+ |
+window.onbeforeunload = function() { |
+ options.OptionsPage.willClose(); |
+}; |