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

Unified Diff: Source/devtools/front_end/main/AdvancedApp.js

Issue 434403003: [DevTools] Add user metric action DeviceModeEnabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/devtools/front_end/host/UserMetrics.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/AdvancedApp.js
diff --git a/Source/devtools/front_end/main/AdvancedApp.js b/Source/devtools/front_end/main/AdvancedApp.js
index 6480e55fb414a6479efae174ac6c0f028a499665..97b4c41c73764c46288d2b978292b05ea60d3954 100644
--- a/Source/devtools/front_end/main/AdvancedApp.js
+++ b/Source/devtools/front_end/main/AdvancedApp.js
@@ -22,7 +22,10 @@ WebInspector.AdvancedApp = function()
WebInspector.AdvancedApp.prototype = {
_toggleEmulationEnabled: function()
{
- WebInspector.overridesSupport.setEmulationEnabled(!this._toggleEmulationButton.toggled);
+ var enabled = !this._toggleEmulationButton.toggled;
+ if (enabled)
+ WebInspector.userMetrics.DeviceModeEnabled.record();
+ WebInspector.overridesSupport.setEmulationEnabled(enabled);
},
_emulationEnabledChanged: function()
« no previous file with comments | « Source/devtools/front_end/host/UserMetrics.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698