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

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

Issue 1844783002: Only enable mirroring for 2 displays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass mirrorEnabled explicitly, cleanup Created 4 years, 9 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 | chrome/browser/resources/options/chromeos/display_options.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 2b63e80fc2d4970bc5dc83e69e9613109dd99ae9..8538abc2197e6382fe2914c52f8e9e6c0428eaa6 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -1737,17 +1737,17 @@ cr.define('options', function() {
/**
* Enables or disables the Chrome OS display settings button and overlay.
- * @param {boolean} enabled
- * @param {boolean} showUnifiedDesktop
- * @param {boolean} multiDisplayLayout
+ * @param {boolean} uiEnabled
+ * @param {boolean} unifiedEnabled
+ * @param {boolean} mirroredEnabled
* @private
*/
enableDisplaySettings_: function(
- enabled, showUnifiedDesktop, multiDisplayLayout) {
+ uiEnabled, unifiedEnabled, mirroredEnabled) {
if (cr.isChromeOS) {
- $('display-options').disabled = !enabled;
+ $('display-options').disabled = !uiEnabled;
DisplayOptions.getInstance().setEnabled(
- enabled, showUnifiedDesktop, multiDisplayLayout);
+ uiEnabled, unifiedEnabled, mirroredEnabled);
}
},
« no previous file with comments | « no previous file | chrome/browser/resources/options/chromeos/display_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698