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

Issue 260613002: sync: Expose DirectoryDebugInfoEmitters in engine (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Expose DirectoryDebugInfoEmitters in engine Changes the lifetime of DirectoryTypeDebugInfoEmitters, DirectoryCommitContributors, and DirectoryUpdateHandlers. Under the old lifetime management design, we had no state that lived beyond a configure cycle. This would be bad, since we want the debug info counter values to remain after the initial configure is done. The refactoring ensures that the DirectoryTypeDebugInfoEmitters will live as long as their data type is enabled. As a side effect, the commit contributors and update handlers get to live that long, too. Plumbs the DirectoryTypeDebugInfoEmitters through the commit contributor and update handler classes. This prepares them for updating counters and emitting events from sync/engine/ code, although this functionality won't be implemented until the next patch in the series. BUG=328606 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267740

Patch Set 1 #

Patch Set 2 : Fix memory leak #

Patch Set 3 : Refactor reconfiguration logic #

Total comments: 2

Patch Set 4 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -45 lines) Patch
M sync/engine/directory_commit_contribution.h View 4 chunks +8 lines, -2 lines 0 comments Download
M sync/engine/directory_commit_contribution.cc View 3 chunks +14 lines, -4 lines 0 comments Download
M sync/engine/directory_commit_contribution_unittest.cc View 4 chunks +12 lines, -6 lines 0 comments Download
M sync/engine/directory_commit_contributor.h View 3 chunks +7 lines, -1 line 0 comments Download
M sync/engine/directory_commit_contributor.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M sync/engine/directory_update_handler.h View 3 chunks +4 lines, -1 line 0 comments Download
M sync/engine/directory_update_handler.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M sync/engine/directory_update_handler_unittest.cc View 10 chunks +24 lines, -9 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 1 2 3 3 chunks +19 lines, -15 lines 0 comments Download
M sync/sessions/model_type_registry_unittest.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
Please review. I'm not too happy about how the reconfiguration logic turned out, but I ...
6 years, 7 months ago (2014-04-30 00:24:22 UTC) #1
rlarocque
Updated reconfiguration logic as discussed. PTAL. This version should handle some edge cases better than ...
6 years, 7 months ago (2014-04-30 23:16:03 UTC) #2
tim (not reviewing)
https://codereview.chromium.org/260613002/diff/40001/sync/sessions/model_type_registry.cc File sync/sessions/model_type_registry.cc (right): https://codereview.chromium.org/260613002/diff/40001/sync/sessions/model_type_registry.cc#newcode34 sync/sessions/model_type_registry.cc:34: // The DebugInfoEmitters are not deleted, since we want ...
6 years, 7 months ago (2014-04-30 23:24:49 UTC) #3
rlarocque
Patch updated. https://codereview.chromium.org/260613002/diff/40001/sync/sessions/model_type_registry.cc File sync/sessions/model_type_registry.cc (right): https://codereview.chromium.org/260613002/diff/40001/sync/sessions/model_type_registry.cc#newcode34 sync/sessions/model_type_registry.cc:34: // The DebugInfoEmitters are not deleted, since ...
6 years, 7 months ago (2014-04-30 23:44:13 UTC) #4
tim (not reviewing)
lgtm
6 years, 7 months ago (2014-05-01 17:42:16 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-01 17:47:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/260613002/60001
6 years, 7 months ago (2014-05-01 17:48:05 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 18:48:09 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-01 18:48:09 UTC) #9
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-01 23:55:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/260613002/60001
6 years, 7 months ago (2014-05-01 23:56:19 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 04:36:13 UTC) #12
Message was sent while issue was closed.
Change committed as 267740

Powered by Google App Engine
This is Rietveld 408576698