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

Unified Diff: base/base_paths_win.cc

Issue 2079233004: Add the Windows.IsPinnedToTaskbar metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Grt's comments Created 4 years, 6 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: base/base_paths_win.cc
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc
index 03adb1e1c95634e86823ac264bb4c9b7b78e2789..62e1972e5f2e2ba8b2fbe807c9ac42b4a6ca0558 100644
--- a/base/base_paths_win.cc
+++ b/base/base_paths_win.cc
@@ -173,8 +173,14 @@ bool PathProviderWin(int key, FilePath* result) {
case base::DIR_TASKBAR_PINS:
if (!PathService::Get(base::DIR_USER_QUICK_LAUNCH, &cur))
return false;
- cur = cur.Append(FILE_PATH_LITERAL("User Pinned"));
- cur = cur.Append(FILE_PATH_LITERAL("TaskBar"));
+ cur = cur.Append(FILE_PATH_LITERAL("User Pinned"))
+ .Append(FILE_PATH_LITERAL("TaskBar"));
+ break;
+ case base::DIR_IMPLICIT_APP_SHORTCUTS:
+ if (!PathService::Get(base::DIR_USER_QUICK_LAUNCH, &cur))
+ return false;
+ cur = cur.Append(FILE_PATH_LITERAL("User Pinned"))
+ .Append(FILE_PATH_LITERAL("ImplicitAppShortcuts"));
break;
case base::DIR_WINDOWS_FONTS:
if (FAILED(SHGetFolderPath(

Powered by Google App Engine
This is Rietveld 408576698