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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js

Issue 2701703003: DevTools: Add user metric for CPU throttling enable. (Closed)
Patch Set: update test 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/components/CPUThrottlingManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js b/third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js
index 4ce1d5b0aac31b3d5a23bed17675c544ece06efd..8b5d156e0601d4ca544c83d873c15dae98abfe25 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/CPUThrottlingManager.js
@@ -23,6 +23,7 @@ Components.CPUThrottlingManager = class extends Common.Object {
SDK.targetManager.targets().forEach(target => target.emulationAgent().setCPUThrottlingRate(this._throttlingRate));
var icon = null;
if (this._throttlingRate !== 1) {
+ Host.userMetrics.actionTaken(Host.UserMetrics.Action.CpuThrottlingEnabled);
icon = UI.Icon.create('smallicon-warning');
icon.title = Common.UIString('CPU throttling is enabled');
}

Powered by Google App Engine
This is Rietveld 408576698