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

Side by Side Diff: base/base_paths_win.cc

Issue 14027008: Migrate app_host.exe shortcuts to chrome.exe shortcuts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 unified diff | Download patch
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_util.h" 10 #include "base/file_util.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698