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

Unified Diff: chrome/browser/metrics/jumplist_metrics_win.cc

Issue 660813002: [Win] Add a fast profile switcher to the Windows taskbar item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: commas. commas are important Created 6 years, 1 month 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 | « chrome/browser/metrics/jumplist_metrics_win.h ('k') | chrome/browser/profiles/avatar_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/jumplist_metrics_win.cc
diff --git a/chrome/browser/metrics/jumplist_metrics_win.cc b/chrome/browser/metrics/jumplist_metrics_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..454d9a45cfa5d3af0a3695378193359c90119d8f
--- /dev/null
+++ b/chrome/browser/metrics/jumplist_metrics_win.cc
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/metrics/jumplist_metrics_win.h"
+
+#include "base/metrics/histogram.h"
+
+namespace jumplist {
+
+const char kMostVisitedCategory[] = "most-visited";
+const char kProfilesCategory[] = "profiles";
+const char kRecentlyClosedCategory[] = "recently-closed";
+
+void LogJumplistActionFromSwitchValue(const std::string& value) {
+ JumplistCategory metric = CATEGORY_UNKNOWN;
+ if (value == kMostVisitedCategory)
+ metric = MOST_VISITED_URL;
+ else if (value == kProfilesCategory)
+ metric = SWITCH_TO_PROFILE;
+ else if (value == kRecentlyClosedCategory)
+ metric = RECENTLY_CLOSED_URL;
+ DCHECK_NE(metric, CATEGORY_UNKNOWN);
+
+ UMA_HISTOGRAM_ENUMERATION(
+ "WinJumplist.Action", metric, NUM_JUMPLIST_CATEGORY_METRICS);
+}
+
+} // namespace jumplist
« no previous file with comments | « chrome/browser/metrics/jumplist_metrics_win.h ('k') | chrome/browser/profiles/avatar_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698