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

Unified Diff: chrome/browser/chrome_browser_main.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: fix compile 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
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 48e78ea8a92c668dd6211a47ed568f96ede7503c..044dd06f037180541a72c97e263680e7cbb7b8aa 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -165,6 +165,7 @@
#include "chrome/browser/component_updater/sw_reporter_installer_win.h"
#include "chrome/browser/first_run/try_chrome_dialog_view.h"
#include "chrome/browser/first_run/upgrade_util_win.h"
+#include "chrome/browser/jumplist_metrics.h"
#include "chrome/browser/ui/network_profile_bubble.h"
#include "chrome/installer/util/helper.h"
#include "chrome/installer/util/install_util.h"
@@ -455,6 +456,14 @@ bool ProcessSingletonNotificationCallback(
if (!g_browser_process || g_browser_process->IsShuttingDown())
return false;
+#if defined(OS_WIN)
+ // Log whether this process was a result of an action in the Windows Jumplist.
+ if (command_line.HasSwitch(switches::kWinJumplistAction)) {
+ JumplistMetrics::LogJumplistActionFromSwitchValue(
+ command_line.GetSwitchValueASCII(switches::kWinJumplistAction));
tapted 2014/11/10 23:47:41 If you want to catch metrics recording for the cas
noms (inactive) 2014/11/12 19:04:11 Ahh, I misunderstood when this was called. I was u
+ }
+#endif
+
if (command_line.HasSwitch(switches::kOriginalProcessStartTime)) {
std::string start_time_string =
command_line.GetSwitchValueASCII(switches::kOriginalProcessStartTime);
« no previous file with comments | « no previous file | chrome/browser/chromeos/profiles/avatar_menu_chromeos.cc » ('j') | chrome/browser/jumplist_metrics.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698