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

Side by Side Diff: base/base_paths_win.cc

Issue 11275333: Merge 166285 - Re-commit: Introduce RemoveChromeTaskbarShortcuts() to delete all pinned-to-taskbar … (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base_paths_win.h ('k') | base/path_service_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 5
6 #include <windows.h> 6 #include <windows.h>
7 #include <shlobj.h> 7 #include <shlobj.h>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 cur = FilePath(system_buffer); 185 cur = FilePath(system_buffer);
186 break; 186 break;
187 case base::DIR_USER_QUICK_LAUNCH: 187 case base::DIR_USER_QUICK_LAUNCH:
188 if (!GetQuickLaunchPath(false, &cur)) 188 if (!GetQuickLaunchPath(false, &cur))
189 return false; 189 return false;
190 break; 190 break;
191 case base::DIR_DEFAULT_USER_QUICK_LAUNCH: 191 case base::DIR_DEFAULT_USER_QUICK_LAUNCH:
192 if (!GetQuickLaunchPath(true, &cur)) 192 if (!GetQuickLaunchPath(true, &cur))
193 return false; 193 return false;
194 break; 194 break;
195 case base::DIR_TASKBAR_PINS:
196 if (!PathService::Get(base::DIR_USER_QUICK_LAUNCH, &cur))
197 return false;
198 cur = cur.AppendASCII("User Pinned");
199 cur = cur.AppendASCII("TaskBar");
200 break;
195 default: 201 default:
196 return false; 202 return false;
197 } 203 }
198 204
199 *result = cur; 205 *result = cur;
200 return true; 206 return true;
201 } 207 }
202 208
203 } // namespace base 209 } // namespace base
OLDNEW
« no previous file with comments | « base/base_paths_win.h ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698