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

Side by Side Diff: chrome/browser/metrics/jumplist_metrics_win.cc

Issue 931853003: [Win] Revert the profile switcher code from the jumplist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also remove kActivateExistingProfileBrowser Created 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/metrics/jumplist_metrics_win.h" 5 #include "chrome/browser/metrics/jumplist_metrics_win.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 8
9 namespace jumplist { 9 namespace jumplist {
10 10
11 const char kMostVisitedCategory[] = "most-visited"; 11 const char kMostVisitedCategory[] = "most-visited";
12 const char kProfilesCategory[] = "profiles";
13 const char kRecentlyClosedCategory[] = "recently-closed"; 12 const char kRecentlyClosedCategory[] = "recently-closed";
14 13
15 void LogJumplistActionFromSwitchValue(const std::string& value) { 14 void LogJumplistActionFromSwitchValue(const std::string& value) {
16 JumplistCategory metric = CATEGORY_UNKNOWN; 15 JumplistCategory metric = CATEGORY_UNKNOWN;
17 if (value == kMostVisitedCategory) 16 if (value == kMostVisitedCategory)
18 metric = MOST_VISITED_URL; 17 metric = MOST_VISITED_URL;
19 else if (value == kProfilesCategory)
20 metric = SWITCH_TO_PROFILE;
21 else if (value == kRecentlyClosedCategory) 18 else if (value == kRecentlyClosedCategory)
22 metric = RECENTLY_CLOSED_URL; 19 metric = RECENTLY_CLOSED_URL;
23 DCHECK_NE(metric, CATEGORY_UNKNOWN); 20 DCHECK_NE(metric, CATEGORY_UNKNOWN);
24 21
25 UMA_HISTOGRAM_ENUMERATION( 22 UMA_HISTOGRAM_ENUMERATION(
26 "WinJumplist.Action", metric, NUM_JUMPLIST_CATEGORY_METRICS); 23 "WinJumplist.Action", metric, NUM_JUMPLIST_CATEGORY_METRICS);
27 } 24 }
28 25
29 } // namespace jumplist 26 } // namespace jumplist
OLDNEW
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698