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

Unified Diff: chrome/browser/resources/options2/chromeos/display_options.js

Issue 10827317: Refleshes display info when the chrome://settings/display dialog gets visible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/chromeos/display_options.js
diff --git a/chrome/browser/resources/options2/chromeos/display_options.js b/chrome/browser/resources/options2/chromeos/display_options.js
index b855782aada56e838e8c736c60e4af0b9b127e66..b663d94209e89f1b1d5cbf079c0fe916913fd3ae 100644
--- a/chrome/browser/resources/options2/chromeos/display_options.js
+++ b/chrome/browser/resources/options2/chromeos/display_options.js
@@ -56,6 +56,13 @@ cr.define('options', function() {
chrome.send('getDisplayInfo');
},
+ /** @override */
+ onVisibilityChanged_: function() {
+ OptionsPage.prototype.onVisibilityChanged_(this);
+ if (this.visible)
+ chrome.send('getDisplayInfo');
+ },
+
/**
* Collects the current data and sends it to Chrome.
* @private
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698