| 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_util.h" | 10 #include "base/file_util.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 case base::DIR_DEFAULT_USER_QUICK_LAUNCH: | 193 case base::DIR_DEFAULT_USER_QUICK_LAUNCH: |
| 194 if (!GetQuickLaunchPath(true, &cur)) | 194 if (!GetQuickLaunchPath(true, &cur)) |
| 195 return false; | 195 return false; |
| 196 break; | 196 break; |
| 197 case base::DIR_TASKBAR_PINS: | 197 case base::DIR_TASKBAR_PINS: |
| 198 if (!PathService::Get(base::DIR_USER_QUICK_LAUNCH, &cur)) | 198 if (!PathService::Get(base::DIR_USER_QUICK_LAUNCH, &cur)) |
| 199 return false; | 199 return false; |
| 200 cur = cur.AppendASCII("User Pinned"); | 200 cur = cur.AppendASCII("User Pinned"); |
| 201 cur = cur.AppendASCII("TaskBar"); | 201 cur = cur.AppendASCII("TaskBar"); |
| 202 break; | 202 break; |
| 203 case base::DIR_IMPLICIT_APP_SHORTCUTS: |
| 204 if (!PathService::Get(base::DIR_USER_QUICK_LAUNCH, &cur)) |
| 205 return false; |
| 206 cur = cur.AppendASCII("User Pinned"); |
| 207 cur = cur.AppendASCII("ImplicitAppShortcuts"); |
| 208 break; |
| 203 default: | 209 default: |
| 204 return false; | 210 return false; |
| 205 } | 211 } |
| 206 | 212 |
| 207 *result = cur; | 213 *result = cur; |
| 208 return true; | 214 return true; |
| 209 } | 215 } |
| 210 | 216 |
| 211 } // namespace base | 217 } // namespace base |
| OLD | NEW |