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

Issue 7891054: Add GROUP_FILE ModelSafeGroup (Closed)

Created:
9 years, 3 months ago by not at google - send to devlin
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana
Visibility:
Public.

Description

Add GROUP_FILE ModelSafeGroup BUG= TEST=Added FileModelWorkerUnittest

Patch Set 1 #

Total comments: 12

Patch Set 2 : Generalize DatabaseWorkerThread instead of copying #

Patch Set 3 : Remove FileModelWorkers #

Total comments: 6

Patch Set 4 : Comments #

Total comments: 2

Patch Set 5 : Dot #

Patch Set 6 : Fix worker count in unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -195 lines) Patch
M chrome/browser/sync/engine/mock_model_safe_workers.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/mock_model_safe_workers.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/browser_thread_model_worker.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/browser_thread_model_worker.cc View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A + chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc View 1 2 3 4 3 chunks +22 lines, -17 lines 0 comments Download
D chrome/browser/sync/glue/database_model_worker.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/sync/glue/database_model_worker.cc View 1 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/sync/glue/database_model_worker_unittest.cc View 1 1 chunk +0 lines, -93 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
not at google - send to devlin
FileModelWorker and its unit test are just copied verbatim from DatabaseModelWorker with db/database renamed to ...
9 years, 3 months ago (2011-09-14 18:03:19 UTC) #1
not at google - send to devlin
(Forgot to add Fred as a reviewer.)
9 years, 3 months ago (2011-09-14 18:03:57 UTC) #2
akalin
LGTM after comments http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/engine/mock_model_safe_workers.h File chrome/browser/sync/engine/mock_model_safe_workers.h (right): http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/engine/mock_model_safe_workers.h#newcode27 chrome/browser/sync/engine/mock_model_safe_workers.h:27: class MockFILEModelWorker : public ModelSafeWorker { ...
9 years, 3 months ago (2011-09-14 18:11:06 UTC) #3
Paweł Hajdan Jr.
Drive-by with testing comment. I'd like to take another look before this gets committed. http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/glue/file_model_worker_unittest.cc ...
9 years, 3 months ago (2011-09-14 18:33:01 UTC) #4
not at google - send to devlin
http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/engine/mock_model_safe_workers.h File chrome/browser/sync/engine/mock_model_safe_workers.h (right): http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/engine/mock_model_safe_workers.h#newcode27 chrome/browser/sync/engine/mock_model_safe_workers.h:27: class MockFILEModelWorker : public ModelSafeWorker { On 2011/09/14 18:11:11, ...
9 years, 3 months ago (2011-09-14 19:09:18 UTC) #5
akalin
LGTM after comments Pawel? http://codereview.chromium.org/7891054/diff/6001/chrome/browser/sync/glue/browser_thread_model_worker.cc File chrome/browser/sync/glue/browser_thread_model_worker.cc (right): http://codereview.chromium.org/7891054/diff/6001/chrome/browser/sync/glue/browser_thread_model_worker.cc#newcode22 chrome/browser/sync/glue/browser_thread_model_worker.cc:22: DLOG(WARNING) << "Already on the ...
9 years, 3 months ago (2011-09-14 19:16:32 UTC) #6
not at google - send to devlin
btw http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/glue/file_model_worker_unittest.cc File chrome/browser/sync/glue/file_model_worker_unittest.cc (right): http://codereview.chromium.org/7891054/diff/1/chrome/browser/sync/glue/file_model_worker_unittest.cc#newcode41 chrome/browser/sync/glue/file_model_worker_unittest.cc:41: timer()->Start(FROM_HERE, TimeDelta::FromSeconds(10), On 2011/09/14 18:33:01, Paweł Hajdan Jr. ...
9 years, 3 months ago (2011-09-14 19:21:59 UTC) #7
not at google - send to devlin
I'll put through the submit queue now, any more comments I can do in a ...
9 years, 3 months ago (2011-09-14 20:39:02 UTC) #8
Paweł Hajdan Jr.
LGTM http://codereview.chromium.org/7891054/diff/7001/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc File chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc (right): http://codereview.chromium.org/7891054/diff/7001/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc#newcode39 chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc:39: // DoWork hasn't executed within action_timeout_ms() ms nit: ...
9 years, 3 months ago (2011-09-14 20:41:14 UTC) #9
not at google - send to devlin
Commit queue didn't work, it seems not to like moving files. I'll try a git ...
9 years, 3 months ago (2011-09-14 21:18:06 UTC) #10
akalin
How did you try the commit queue? I think just checking the box here should ...
9 years, 3 months ago (2011-09-15 00:05:11 UTC) #11
not at google - send to devlin
On 2011/09/15 00:05:11, akalin wrote: > How did you try the commit queue? I think ...
9 years, 3 months ago (2011-09-15 00:08:22 UTC) #12
not at google - send to devlin
I.e. look at this: http://build.chromium.org/p/tryserver.chromium/builders/linux_clang/builds/8419/steps/compile/logs/stdio The missing file is definitely there. And I found a ...
9 years, 3 months ago (2011-09-15 00:24:20 UTC) #13
akalin
On 2011/09/15 00:24:20, kalman1 wrote: > I.e. look at this: > > http://build.chromium.org/p/tryserver.chromium/builders/linux_clang/builds/8419/steps/compile/logs/stdio > > ...
9 years, 3 months ago (2011-09-15 00:30:35 UTC) #14
not at google - send to devlin
Submitted as trunk3_group_file#ae2eba
9 years, 3 months ago (2011-09-15 00:39:06 UTC) #15
commit-bot: I haz the power
Try job failure for 7891054-3021 (retry) on win for step "compile" (clobber build). It's a ...
9 years, 3 months ago (2011-09-15 00:51:42 UTC) #16
not at google - send to devlin
On 2011/09/15 00:51:42, I haz the power (commit-bot) wrote: > Try job failure for 7891054-3021 ...
9 years, 3 months ago (2011-09-15 16:26:46 UTC) #17
not at google - send to devlin
Replying to the failing buildbot gave the wrong impression... Trybot is green.
9 years, 3 months ago (2011-09-15 16:27:09 UTC) #18
akalin
On 2011/09/15 16:27:09, kalman1 wrote: > Replying to the failing buildbot gave the wrong impression... ...
9 years, 3 months ago (2011-09-15 16:52:13 UTC) #19
akalin
On 2011/09/15 16:52:13, akalin wrote: > On 2011/09/15 16:27:09, kalman1 wrote: > > Replying to ...
9 years, 3 months ago (2011-09-15 18:54:44 UTC) #20
tim (not reviewing)
On 2011/09/15 18:54:44, akalin wrote: > On 2011/09/15 16:52:13, akalin wrote: > > On 2011/09/15 ...
9 years, 3 months ago (2011-09-23 14:16:35 UTC) #21
akalin
9 years, 3 months ago (2011-09-23 17:29:18 UTC) #22
On Fri, Sep 23, 2011 at 7:16 AM,  <tim@chromium.org> wrote:
> Why does this add a 'BrowserThreadModelWorker'?  Isn't it just for the file
> thread?

Because otherwise it's duplicated code.

> I haven't been following this too closely, but how come we changed our minds
> from simply using GROUP_UI for extensions settings?

Because extension settings lives on the FILE thread.

>
> I'm additionally concerned about http://crbug.com/97271.
> And the recent perf test timeouts..

I don't see how this can affect any timings, unless work is actually
being done on the FILE thread.

Powered by Google App Engine
This is Rietveld 408576698