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

Issue 2805100: Fix CheckFalseTest.CheckFails on Linux after my change to ui_test. (Closed)

Created:
10 years, 5 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, brettw, evanm
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Fix CheckFalseTest.CheckFails on Linux after my change to ui_test. This makes PathService clear its cache after overriding a path. We have many paths depending on each other, so this is necessary to avoid inconsistencies. TEST=ui_tests in Release mode BUG=49838 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59021

Patch Set 1 #

Total comments: 2

Patch Set 2 : don't break browser_tests #

Patch Set 3 : another try #

Total comments: 2

Patch Set 4 : hopefully final #

Patch Set 5 : final #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -26 lines) Patch
M base/path_service.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M base/path_service.cc View 1 2 3 4 6 chunks +26 lines, -12 lines 0 comments Download
M chrome/browser/profile_impl.cc View 2 3 4 1 chunk +6 lines, -8 lines 1 comment Download
M chrome/common/logging_chrome_uitest.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 3 4 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Paweł Hajdan Jr.
10 years, 5 months ago (2010-07-22 20:24:21 UTC) #1
Lei Zhang
Look ok to me with nits below. Deferring to Brett. http://codereview.chromium.org/2805100/diff/1/2 File base/path_service.cc (right): http://codereview.chromium.org/2805100/diff/1/2#newcode238 ...
10 years, 5 months ago (2010-07-22 20:38:57 UTC) #2
brettw
How about a quick unit test that getting the value, overriding, and then getting it ...
10 years, 5 months ago (2010-07-22 20:39:36 UTC) #3
Paweł Hajdan Jr.
Please take another look. This version of the patch doesn't break browser_tests.
10 years, 4 months ago (2010-08-06 22:13:12 UTC) #4
brettw
LGTM On Fri, Aug 6, 2010 at 3:13 PM, <phajdan.jr@chromium.org> wrote: > Please take another ...
10 years, 4 months ago (2010-08-08 05:21:41 UTC) #5
Paweł Hajdan Jr.
Please take a look. This revision attempts to fix some weird failures.
10 years, 4 months ago (2010-08-18 22:55:13 UTC) #6
Lei Zhang
http://codereview.chromium.org/2805100/diff/14001/15005 File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/2805100/diff/14001/15005#newcode396 chrome/test/ui/ui_test.cc:396: env->SetVar("XDG_CACHE_HOME", user_data_dir().value()); Can you override DIR_USER_CACHE instead of relying ...
10 years, 4 months ago (2010-08-18 23:08:12 UTC) #7
Lei Zhang
http://codereview.chromium.org/2805100/diff/14001/15005 File chrome/test/ui/ui_test.cc (right): http://codereview.chromium.org/2805100/diff/14001/15005#newcode396 chrome/test/ui/ui_test.cc:396: env->SetVar("XDG_CACHE_HOME", user_data_dir().value()); On 2010/08/18 23:08:13, Lei Zhang wrote: > ...
10 years, 4 months ago (2010-08-19 17:43:17 UTC) #8
Lei Zhang
Oh, and LGTM with the additional comments.
10 years, 4 months ago (2010-08-19 17:47:03 UTC) #9
Paweł Hajdan Jr.
Patch updated. I'm assuming LGTM from both of you, but if you have any comments ...
10 years, 4 months ago (2010-08-19 18:00:11 UTC) #10
evanm
http://codereview.chromium.org/2805100/diff/28001/chrome/browser/profile_impl.cc File chrome/browser/profile_impl.cc (left): http://codereview.chromium.org/2805100/diff/28001/chrome/browser/profile_impl.cc#oldcode313 chrome/browser/profile_impl.cc:313: if (!PathService::IsOverridden(chrome::DIR_USER_DATA)) { FYI, this regressed having separate cache ...
10 years, 1 month ago (2010-11-12 20:54:58 UTC) #11
Paweł Hajdan Jr.
On Fri, Nov 12, 2010 at 21:54, <evanm@google.com> wrote: > > FYI, this regressed having ...
10 years, 1 month ago (2010-11-13 15:00:17 UTC) #12
evanm
On Sat, Nov 13, 2010 at 6:59 AM, Paweł Hajdan, Jr. <phajdan.jr@chromium.org> wrote: > Oops ...
10 years, 1 month ago (2010-11-13 19:04:14 UTC) #13
Paweł Hajdan Jr.
10 years, 1 month ago (2010-11-13 21:21:16 UTC) #14
On Sat, Nov 13, 2010 at 20:04, Evan Martin <evanm@google.com> wrote:

> On Sat, Nov 13, 2010 at 6:59 AM, Paweł Hajdan, Jr.
> <phajdan.jr@chromium.org> wrote:
> > Oops indeed. However, I'm not sure how to fix it. If the cache lives in
> > .cache and the profile in .config, it's not obvious, and using
> IsOverridden
> > is hacky and fragile. How about just moving the cache to .config? Or
> maybe
> > there's a better solution.
>
> My plan is to move the .config/.cache decision into path service,
> which will then have access to the private IsOverridden.
> I will CC you on it.  (I didn't want to do it in this change because
> it requires refactoring on Windows and Mac too...)
>

SGTM, thanks for working on this!

Powered by Google App Engine
This is Rietveld 408576698