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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js

Issue 2678233002: DevTools: track more elements panel user actions (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js
index 0c986301819d394148919759d80983537a6afdb1..7c5065b6b4a0c87e6d199f93ee0fbe7d8e8722de 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeWrapper.js
@@ -22,6 +22,10 @@ Emulation.DeviceModeWrapper = class extends UI.VBox {
_toggleDeviceMode() {
this._showDeviceModeSetting.set(!this._showDeviceModeSetting.get());
+ if (this._showDeviceModeSetting.get())
+ Host.userMetrics.actionTaken(Host.UserMetrics.Action.DeviceModeToggleOn);
pfeldman 2017/02/07 19:15:27 Wait, we had that, where did it go?
+ else
+ Host.userMetrics.actionTaken(Host.UserMetrics.Action.DeviceModeToggleOff);
}
/**

Powered by Google App Engine
This is Rietveld 408576698