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

Issue 10964007: Re-commit: Add new PathService paths for Windows' All Users Desktop and Quick Launch folders. (Closed)

Created:
8 years, 3 months ago by gab
Modified:
8 years, 3 months ago
CC:
chromium-reviews, tfarina, erikwright+watch_chromium.org, rdsmith+dwatch_chromium.org, grt+watch_chromium.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Fix PathServiceTest.Get on XP #

Total comments: 8

Patch Set 3 : Better solution for XP exception #

Total comments: 2

Patch Set 4 : last nit #

Patch Set 5 : Windows only includes/pragma in the ifdef OS_WIN #

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

Messages

Total messages: 9 (0 generated)
gab
Fixed XP tests, Default user's quick launch folder doesn't exist by default on XP... PTAL. ...
8 years, 3 months ago (2012-09-20 03:12:07 UTC) #1
grt (UTC plus 2)
http://codereview.chromium.org/10964007/diff/2001/base/path_service_unittest.cc File base/path_service_unittest.cc (right): http://codereview.chromium.org/10964007/diff/2001/base/path_service_unittest.cc#newcode39 base/path_service_unittest.cc:39: path.value().find(L"Desktop") != string16::npos); IMO, this looks like a test ...
8 years, 3 months ago (2012-09-20 03:44:07 UTC) #2
gab
Done. http://codereview.chromium.org/10964007/diff/2001/base/path_service_unittest.cc File base/path_service_unittest.cc (right): http://codereview.chromium.org/10964007/diff/2001/base/path_service_unittest.cc#newcode39 base/path_service_unittest.cc:39: path.value().find(L"Desktop") != string16::npos); On 2012/09/20 03:44:07, grt wrote: ...
8 years, 3 months ago (2012-09-20 04:15:35 UTC) #3
grt (UTC plus 2)
lgtm w/ a nit. http://codereview.chromium.org/10964007/diff/8001/base/path_service_unittest.cc File base/path_service_unittest.cc (right): http://codereview.chromium.org/10964007/diff/8001/base/path_service_unittest.cc#newcode52 base/path_service_unittest.cc:52: DWORD size = MAX_PATH; MAX_PATH ...
8 years, 3 months ago (2012-09-20 04:33:42 UTC) #4
gab
Thanks, brettw to TBR since this is basically the same as the already LGTMed https://chromiumcodereview.appspot.com/10910209. ...
8 years, 3 months ago (2012-09-20 12:30:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10964007/2003
8 years, 3 months ago (2012-09-20 12:30:57 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-20 12:42:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/10964007/6002
8 years, 3 months ago (2012-09-20 14:05:54 UTC) #8
commit-bot: I haz the power
8 years, 3 months ago (2012-09-20 16:24:54 UTC) #9
Change committed as 157779

Powered by Google App Engine
This is Rietveld 408576698