|
Add new PathService paths for Windows' All Users Desktop and Quick Launch folders.
Re-commit, reverted in http://crrev.com/157680 (original commit in http://crrev.com/157667).
This allows usage of PathService to cache the shortcut install paths and more importantly to mock them in shortcut tests!
Also move chrome::DIR_USER_DESKTOP to base::DIR_USER_DESKTOP; this is really where it belongs. In fact it is only in chrome_paths.h because it used to be called DIR_DEFAULT_DOWNLOAD and cpu@ renamed it to DIR_USER_DESKTOP in http://crrev.com/1753 (early days!) after that it started to be used all over the place as the Desktop path. Finally bringing it to base_paths.h, beside DIR_START_MENU and friends, is the right thing to do imo.
TBR=brettw@chromium.org
BUG= 148539
TEST=Quick Launch shortcut installed in the right place on XP (both Default and current user)
Desktop shortcuts installed in the right place (both All Users and per-user installs).
installer_util_unittests.exe --gtest_filter=ShellUtilShortcutTest*
unit_tests.exe --gtest_filter=ProfileShortcutManagerTest*
base_unittests --gtest_filter=PathServiceTest*
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157779
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+232 lines, -152 lines) |
Patch |
|
M |
base/base.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
base/base_paths.h
|
View
|
|
2 chunks |
+5 lines, -11 lines |
0 comments
|
Download
|
|
M |
base/base_paths.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
base/base_paths_android.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
base/base_paths_android.cc
|
View
|
|
2 chunks |
+15 lines, -17 lines |
0 comments
|
Download
|
|
M |
base/base_paths_mac.mm
|
View
|
|
5 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
|
A |
base/base_paths_posix.h
|
View
|
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/base_paths_posix.cc
|
View
|
|
4 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
base/base_paths_win.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/base_paths_win.cc
|
View
|
|
4 chunks |
+57 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/path_service.cc
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
base/path_service_unittest.cc
|
View
|
1
2
3
4
|
4 chunks |
+44 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_util.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc
|
View
|
|
3 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/shell_integration_linux.cc
|
View
|
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/shell_integration_win.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/test/ui_test_utils_win.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/web_applications/web_app_ui.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/web_applications/web_app_win.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths_android.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths_internal.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths_linux.cc
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths_mac.mm
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/common/chrome_paths_win.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/installer/util/shell_util.cc
|
View
|
|
1 chunk |
+6 lines, -34 lines |
0 comments
|
Download
|
|
M |
chrome/installer/util/shell_util_unittest.cc
|
View
|
|
7 chunks |
+24 lines, -20 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|