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

Issue 10545169: Move thread checking from autofill_country.cc to browser_process_impl.cc (Closed)

Created:
8 years, 6 months ago by Xianzhu
Modified:
8 years, 6 months ago
Reviewers:
Ilya Sherman, sky
CC:
chromium-reviews, dhollowa+watch_chromium.org, dyu1
Visibility:
Public.

Description

Move thread checking from autofill_country.cc to browser_process_impl.cc DCHECK(CalledOnValidThread()) is better than BrowserThread::CurrentlyOn(...) because it automatically supports unit test without requiring setting up specific threads. BUG=132643 TEST=Run Autofill tests in debug build Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142048

Patch Set 1 #

Patch Set 2 : Remove code about thread in address_unittest.cc which is no longer needed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -20 lines) Patch
M chrome/browser/autofill/address_unittest.cc View 1 4 chunks +4 lines, -17 lines 0 comments Download
M chrome/browser/autofill/autofill_country.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Xianzhu
8 years, 6 months ago (2012-06-13 23:10:36 UTC) #1
Ilya Sherman
LGTM. Thanks for the fix! :)
8 years, 6 months ago (2012-06-13 23:13:47 UTC) #2
Xianzhu
On 2012/06/13 23:13:47, Ilya Sherman wrote: > LGTM. Thanks for the fix! :) Thanks for ...
8 years, 6 months ago (2012-06-13 23:26:35 UTC) #3
Ilya Sherman
On 2012/06/13 23:26:35, Xianzhu wrote: > On 2012/06/13 23:13:47, Ilya Sherman wrote: > > LGTM. ...
8 years, 6 months ago (2012-06-13 23:40:01 UTC) #4
Xianzhu
On 2012/06/13 23:40:01, Ilya Sherman wrote: > Yes, all tests run with DCHECK enabled on ...
8 years, 6 months ago (2012-06-13 23:48:32 UTC) #5
sky
LGTM
8 years, 6 months ago (2012-06-13 23:50:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/10545169/7001
8 years, 6 months ago (2012-06-13 23:52:25 UTC) #7
commit-bot: I haz the power
8 years, 6 months ago (2012-06-14 00:58:21 UTC) #8
Change committed as 142048

Powered by Google App Engine
This is Rietveld 408576698