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

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

Issue 2540433002: Reland "Propagate information about how ARC apps are launched" (Closed)
Patch Set: Rebase to ToT Created 4 years, 1 month 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/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 3326d3c5f29650fbb81436ad97ad915c67ec75ec..67f668c1ff5fdf6c16fce0a5ca5ba657705742b6 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -870,7 +870,10 @@ cr.define('options', function() {
});
$('android-apps-settings-link').addEventListener('click', function(e) {
- chrome.send('showAndroidAppsSettings');
+ // MouseEvent.detail indicates the current click count in the
+ // 'click' event.
+ var isMouseOrTouch = e.detail != 0;
stevenjb 2016/11/29 20:17:10 I find isMouseOrTouch confusing. Maybe use isKeybo
Luis Héctor Chávez 2016/11/29 20:50:46 Done.
+ chrome.send('showAndroidAppsSettings', [isMouseOrTouch]);
});
}
},

Powered by Google App Engine
This is Rietveld 408576698