| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |