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

Issue 8366030: Introduce the plumbing necessary to report Unrecoverable error from model safe workers. (Closed)

Created:
9 years, 2 months ago by lipalani1
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), idana
Visibility:
Public.

Description

This is the first patch in a series of patches. This patch introduces the unrecoverable error info class which is plumbed up all ModelSafeWorker subclasses. The subclasses of ModelChangingSyncer command would be converted to return an unrecoverable error info in another CL. BUG=100374 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107535

Patch Set 1 #

Patch Set 2 : For a high level review. #

Total comments: 2

Patch Set 3 : For backup. #

Patch Set 4 : For self review. #

Patch Set 5 : For review. #

Total comments: 13

Patch Set 6 : For review. #

Patch Set 7 : For review. #

Patch Set 8 : For review. #

Total comments: 23

Patch Set 9 : Self review. #

Patch Set 10 : For review. #

Total comments: 18

Patch Set 11 : For review. #

Patch Set 12 : For review. #

Total comments: 2

Patch Set 13 : Upload for try #

Patch Set 14 : For try jobs #

Patch Set 15 : For try jobs #

Patch Set 16 : For try jobs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -64 lines) Patch
M chrome/browser/sync/engine/model_changing_syncer_command.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/model_changing_syncer_command.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/model_safe_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/browser_thread_model_worker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/browser_thread_model_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +20 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/history_model_worker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/history_model_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/password_model_worker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/password_model_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/ui_model_worker.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/ui_model_worker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/ui_model_worker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +9 lines, -4 lines 0 comments Download
A chrome/browser/sync/util/unrecoverable_error_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/sync/util/unrecoverable_error_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
lipalani1
Tim - this is for you to do a high level review of the DESIGN ...
9 years, 2 months ago (2011-10-21 02:48:44 UTC) #1
lipalani1
Adding Fred.
9 years, 2 months ago (2011-10-21 21:55:41 UTC) #2
akalin
http://codereview.chromium.org/8366030/diff/2001/chrome/browser/sync/engine/model_changing_syncer_command.cc File chrome/browser/sync/engine/model_changing_syncer_command.cc (right): http://codereview.chromium.org/8366030/diff/2001/chrome/browser/sync/engine/model_changing_syncer_command.cc#newcode52 chrome/browser/sync/engine/model_changing_syncer_command.cc:52: if (session->unrecoverable_error()) { Why not just make the (optional) ...
9 years, 2 months ago (2011-10-21 22:18:26 UTC) #3
lipalani1
Summarizing for Tim: I discussed this with Fred. I agree with the suggestion here. It ...
9 years, 2 months ago (2011-10-21 23:40:03 UTC) #4
lipalani1
OK the first patch is ready for review. Can either or both of you review. ...
9 years, 2 months ago (2011-10-24 23:10:30 UTC) #5
akalin
http://codereview.chromium.org/8366030/diff/12005/chrome/browser/sync/engine/model_safe_worker.h File chrome/browser/sync/engine/model_safe_worker.h (right): http://codereview.chromium.org/8366030/diff/12005/chrome/browser/sync/engine/model_safe_worker.h#newcode56 chrome/browser/sync/engine/model_safe_worker.h:56: virtual void DoWorkAndWaitUntilDone( It doesn't make sense to do ...
9 years, 2 months ago (2011-10-24 23:20:49 UTC) #6
lipalani1
Added OVERRIDE keyword to DoWorkandWaitUntilDone so that the overriden characteristic is obvious and such mistakes ...
9 years, 2 months ago (2011-10-25 02:29:46 UTC) #7
akalin
Also, please fix CL description/summary http://codereview.chromium.org/8366030/diff/12005/chrome/browser/sync/engine/model_safe_worker.h File chrome/browser/sync/engine/model_safe_worker.h (right): http://codereview.chromium.org/8366030/diff/12005/chrome/browser/sync/engine/model_safe_worker.h#newcode57 chrome/browser/sync/engine/model_safe_worker.h:57: Callback1<sessions::UnrecoverableErrorInfo*>::Type* work, On 2011/10/25 ...
9 years, 2 months ago (2011-10-25 03:20:06 UTC) #8
akalin
http://codereview.chromium.org/8366030/diff/16002/chrome/browser/sync/engine/model_changing_syncer_command.h File chrome/browser/sync/engine/model_changing_syncer_command.h (right): http://codereview.chromium.org/8366030/diff/16002/chrome/browser/sync/engine/model_changing_syncer_command.h#newcode36 chrome/browser/sync/engine/model_changing_syncer_command.h:36: void StartChangingModel(sessions::UnrecoverableErrorInfo* error_info) { On 2011/10/25 03:20:06, akalin wrote: ...
9 years, 2 months ago (2011-10-25 03:29:41 UTC) #9
lipalani1
The main problem was old callbacks did not support the functionality to return arguments and ...
9 years, 1 month ago (2011-10-26 00:12:13 UTC) #10
akalin
http://codereview.chromium.org/8366030/diff/19012/chrome/browser/sync/engine/model_changing_syncer_command.cc File chrome/browser/sync/engine/model_changing_syncer_command.cc (left): http://codereview.chromium.org/8366030/diff/19012/chrome/browser/sync/engine/model_changing_syncer_command.cc#oldcode50 chrome/browser/sync/engine/model_changing_syncer_command.cc:50: worker->DoWorkAndWaitUntilDone(c.get()); Add a comment saying that it's safe to ...
9 years, 1 month ago (2011-10-26 00:25:04 UTC) #11
lipalani1
PTAL. http://codereview.chromium.org/8366030/diff/19012/chrome/browser/sync/engine/model_changing_syncer_command.cc File chrome/browser/sync/engine/model_changing_syncer_command.cc (left): http://codereview.chromium.org/8366030/diff/19012/chrome/browser/sync/engine/model_changing_syncer_command.cc#oldcode50 chrome/browser/sync/engine/model_changing_syncer_command.cc:50: worker->DoWorkAndWaitUntilDone(c.get()); On 2011/10/26 00:25:05, akalin wrote: > Add ...
9 years, 1 month ago (2011-10-26 01:39:11 UTC) #12
akalin
LGTM http://codereview.chromium.org/8366030/diff/26002/chrome/browser/sync/engine/model_changing_syncer_command.cc File chrome/browser/sync/engine/model_changing_syncer_command.cc (right): http://codereview.chromium.org/8366030/diff/26002/chrome/browser/sync/engine/model_changing_syncer_command.cc#newcode8 chrome/browser/sync/engine/model_changing_syncer_command.cc:8: #include "base/basictypes.h" put before callback_old.h http://codereview.chromium.org/8366030/diff/26002/chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc File chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc ...
9 years, 1 month ago (2011-10-26 01:44:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8366030/28005
9 years, 1 month ago (2011-10-27 05:28:44 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-10-27 06:34:37 UTC) #15
Change committed as 107535

Powered by Google App Engine
This is Rietveld 408576698