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

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

Issue 2308823002: Add UMA stats for pen palette (Closed)
Patch Set: incorporate comments and 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
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 67ef66fc23c22482f24e64bf1702f2db047dcab5..017a0ad3db178aa9e75f0043195355eeb4415400 100644
--- a/ash/common/system/chromeos/palette/common_palette_tool.h
+++ b/ash/common/system/chromeos/palette/common_palette_tool.h
@@ -9,6 +9,7 @@
#include "ash/common/system/tray/hover_highlight_view.h"
#include "ash/common/system/tray/view_click_listener.h"
#include "base/strings/string16.h"
+#include "base/time/time.h"
#include "ui/gfx/vector_icons_public.h"
namespace ash {
@@ -38,6 +39,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);
};

Powered by Google App Engine
This is Rietveld 408576698