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

Unified Diff: ash/common/system/chromeos/palette/common_palette_tool.h

Issue 2308823002: Add UMA stats for pen palette (Closed)
Patch Set: rebase Created 4 years, 3 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 | « no previous file | ash/common/system/chromeos/palette/common_palette_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/palette/common_palette_tool.h
diff --git a/ash/common/system/chromeos/palette/common_palette_tool.h b/ash/common/system/chromeos/palette/common_palette_tool.h
index 2cefaffaf64b35e652d485b8c454b0cd3fa4c3a7..fb9419cb5558910462e2a37e050ad5b606098531 100644
--- a/ash/common/system/chromeos/palette/common_palette_tool.h
+++ b/ash/common/system/chromeos/palette/common_palette_tool.h
@@ -8,6 +8,7 @@
#include "ash/common/system/chromeos/palette/palette_tool.h"
#include "ash/common/system/tray/view_click_listener.h"
#include "base/strings/string16.h"
+#include "base/time/time.h"
namespace gfx {
struct VectorIcon;
@@ -42,6 +43,10 @@ class CommonPaletteTool : public PaletteTool, public ash::ViewClickListener {
private:
HoverHighlightView* highlight_view_ = nullptr;
+ // start_time_ is initialized when the tool becomes active.
+ // Used for recording UMA metrics.
+ base::TimeTicks start_time_;
+
DISALLOW_COPY_AND_ASSIGN(CommonPaletteTool);
};
« no previous file with comments | « no previous file | ash/common/system/chromeos/palette/common_palette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698