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

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

Issue 2540433002: Reland "Propagate information about how ARC apps are launched" (Closed)
Patch Set: Fixed use-after-free Created 4 years 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..ac48f54c3faf9e20d8a68e2ca8bd37bd9d550d58 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 (or tap
+ // count, in the case of touch events) in the 'click' event.
+ var activatedFromKeyboard = e.detail == 0;
+ chrome.send('showAndroidAppsSettings', [activatedFromKeyboard]);
});
}
},
« no previous file with comments | « chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_launcher.cc ('k') | chrome/browser/ui/app_list/arc/arc_app_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698