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

Issue 10543015: Add synchronization around access when using ReloadLocaleResources (Closed)

Created:
8 years, 6 months ago by Sheridan Rawlins
Modified:
8 years, 6 months ago
Reviewers:
tony, Evan Stade
CC:
chromium-reviews, Danh Nguyen
Visibility:
Public.

Description

I tried to add a pak override in the command line but for some reason it is stripped before it gets to the browser initialization. I think that adding synchronization to this particular race is the best way to solve the flaky test. Previous description: Add DCHECK for possible flake place - will fail with ASSERT rather than crash. Crashes in comment 15 http://code.google.com/p/chromium/issues/detail?id=95425#c15 Seem to indicate that data has not been loaded/reloaded. There are two possible places that could happen and logging in non-test code + ASSERTION in test code can at least get us a bit further in determining where to look. BUG=95425 TEST=out/Debug/browser_tests --gtest_filter=WebUIBidiCheckerBrowserTestRTL.TestSettingsClearBrowserDataPage Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141739

Patch Set 1 #

Patch Set 2 : Added logging for other case in resource bundle where this may fail. #

Patch Set 3 : Assert locale passes (return is non-empty). #

Patch Set 4 : Added locking for resources to prevent race when using ReloadLocaleResources. #

Patch Set 5 : Navigate to about:blank to ensure that no resources are loading while reloading the locale. #

Total comments: 1

Patch Set 6 : Fixed comment to add ':' after TODO(tony). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M chrome/browser/ui/webui/bidi_checker_web_ui_test.cc View 1 2 3 4 3 chunks +9 lines, -2 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Sheridan Rawlins
8 years, 6 months ago (2012-06-05 23:37:41 UTC) #1
tony
LGTM You might want to say 'why' you're making this change in the description. E.g., ...
8 years, 6 months ago (2012-06-05 23:40:20 UTC) #2
Sheridan Rawlins
On 2012/06/05 23:40:20, tony wrote: > You might want to say 'why' you're making this ...
8 years, 6 months ago (2012-06-05 23:49:29 UTC) #3
tony
On 2012/06/05 23:49:29, Sheridan Rawlins wrote: > On 2012/06/05 23:40:20, tony wrote: > > You ...
8 years, 6 months ago (2012-06-06 00:05:46 UTC) #4
Sheridan Rawlins
Tony, I had to go for the synchronization solution. Armed with this fix (rather than ...
8 years, 6 months ago (2012-06-07 04:03:28 UTC) #5
tony
On 2012/06/07 04:03:28, Sheridan Rawlins wrote: > Tony, I had to go for the synchronization ...
8 years, 6 months ago (2012-06-07 16:41:16 UTC) #6
Sheridan Rawlins
I explored both adding a flag and there are several places (at least 3) where ...
8 years, 6 months ago (2012-06-12 18:26:23 UTC) #7
tony
LGTM, thanks! http://codereview.chromium.org/10543015/diff/14001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): http://codereview.chromium.org/10543015/diff/14001/ui/base/resource/resource_bundle.cc#newcode307 ui/base/resource/resource_bundle.cc:307: // TODO(tony) Firm up locking for or ...
8 years, 6 months ago (2012-06-12 18:33:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scr@chromium.org/10543015/8006
8 years, 6 months ago (2012-06-12 19:41:42 UTC) #9
commit-bot: I haz the power
Presubmit check for 10543015-8006 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-12 19:42:01 UTC) #10
Evan Stade
lgtm
8 years, 6 months ago (2012-06-12 19:57:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scr@chromium.org/10543015/8006
8 years, 6 months ago (2012-06-12 20:10:28 UTC) #12
commit-bot: I haz the power
8 years, 6 months ago (2012-06-12 21:31:01 UTC) #13
Change committed as 141739

Powered by Google App Engine
This is Rietveld 408576698