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

Issue 8356026: [Sync] Cache encrypted types info in ProfileSyncService (Closed)

Created:
9 years, 2 months ago by akalin
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), Paweł Hajdan Jr., tim (not reviewing), idana
Visibility:
Public.

Description

[Sync] Cache encrypted types info in ProfileSyncService Make Cryptographer emit notifications whenever the set of encrypted types changes and also when encryption is complete. Propagate that up to the ProfileSyncService. Since retrieving the encrypted types info requires holding a transaction, that may lead to deadlocks. This prevents that. Remove some unnecessary functions and append ForTest to some other ones. BUG=95619, 100698 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106972

Patch Set 1 #

Patch Set 2 : Fix test failures #

Total comments: 8

Patch Set 3 : Address comments, reworked patch #

Patch Set 4 : Revert to synchronous notifications #

Total comments: 34

Patch Set 5 : Address comments #

Patch Set 6 : Cleanup #

Patch Set 7 : Remove diff #

Total comments: 6

Patch Set 8 : Address comments (retry) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -229 lines) Patch
M chrome/browser/resources/sync_internals/chrome_sync.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 4 chunks +32 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 4 chunks +30 lines, -21 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/sync/internal_api/debug_info_event_listener.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/internal_api/debug_info_event_listener.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.h View 1 2 3 4 2 chunks +42 lines, -12 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 4 5 6 7 16 chunks +47 lines, -52 lines 0 comments Download
M chrome/browser/sync/internal_api/syncapi_unittest.cc View 1 2 3 4 9 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/sync/js/js_sync_manager_observer.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/js/js_sync_manager_observer.cc View 1 2 1 chunk +14 lines, -3 lines 0 comments Download
M chrome/browser/sync/js/js_sync_manager_observer_unittest.cc View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 4 chunks +42 lines, -40 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/sync/protocol/client_debug_info.proto View 1 2 2 chunks +1 line, -3 lines 0 comments Download
chrome/browser/sync/util/cryptographer.h View 1 2 3 4 5 5 chunks +46 lines, -8 lines 0 comments Download
M chrome/browser/sync/util/cryptographer.cc View 1 2 3 4 4 chunks +55 lines, -20 lines 0 comments Download
M chrome/browser/sync/util/cryptographer_unittest.cc View 1 2 3 4 7 chunks +72 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
akalin
+zea for review +tim fyi
9 years, 2 months ago (2011-10-19 23:32:33 UTC) #1
akalin
On 2011/10/19 23:32:33, akalin wrote: > +zea for review > > +tim fyi Oh, look ...
9 years, 2 months ago (2011-10-20 02:58:52 UTC) #2
akalin
Issues fixed, PTAL On 2011/10/20 02:58:52, akalin wrote: > On 2011/10/19 23:32:33, akalin wrote: > ...
9 years, 2 months ago (2011-10-20 04:07:51 UTC) #3
Nicolas Zea
Those integration test failures are a bit troublesome, seeing as how they're the same on ...
9 years, 2 months ago (2011-10-20 18:40:41 UTC) #4
akalin
Reworked this patch substantially to emit the encryption notifications from the Cryptographer. That turned out ...
9 years, 2 months ago (2011-10-21 02:24:17 UTC) #5
Nicolas Zea
http://codereview.chromium.org/8356026/diff/6002/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/8356026/diff/6002/chrome/browser/sync/glue/sync_backend_host.cc#newcode501 chrome/browser/sync/glue/sync_backend_host.cc:501: NewRunnableMethod(this, &Core::NotifyEncryptedTypesChanged, base::bind http://codereview.chromium.org/8356026/diff/6002/chrome/browser/sync/glue/sync_backend_host.h File chrome/browser/sync/glue/sync_backend_host.h (right): http://codereview.chromium.org/8356026/diff/6002/chrome/browser/sync/glue/sync_backend_host.h#newcode100 chrome/browser/sync/glue/sync_backend_host.h:100: ...
9 years, 2 months ago (2011-10-21 14:29:07 UTC) #6
akalin
All comments addressed, PTAL http://codereview.chromium.org/8356026/diff/6002/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/8356026/diff/6002/chrome/browser/sync/glue/sync_backend_host.cc#newcode501 chrome/browser/sync/glue/sync_backend_host.cc:501: NewRunnableMethod(this, &Core::NotifyEncryptedTypesChanged, On 2011/10/21 14:29:07, ...
9 years, 2 months ago (2011-10-22 03:28:38 UTC) #7
akalin
Ping! I think the mac_sync integration test failure is a flake; retrying to see.
9 years, 2 months ago (2011-10-24 18:36:05 UTC) #8
Nicolas Zea
Yeah, any MigratePrefs failure is migrate prefs failure is flake. http://codereview.chromium.org/8356026/diff/15024/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/8356026/diff/15024/chrome/browser/sync/glue/sync_backend_host.cc#newcode930 ...
9 years, 2 months ago (2011-10-24 19:18:16 UTC) #9
akalin
All comments addressed, PTAL http://codereview.chromium.org/8356026/diff/15024/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/8356026/diff/15024/chrome/browser/sync/glue/sync_backend_host.cc#newcode930 chrome/browser/sync/glue/sync_backend_host.cc:930: // Triggers OnEncryptedTypesChanged() if necessary. ...
9 years, 2 months ago (2011-10-24 19:34:13 UTC) #10
Nicolas Zea
LGTM
9 years, 2 months ago (2011-10-24 19:36:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8356026/22002
9 years, 2 months ago (2011-10-24 19:46:32 UTC) #12
commit-bot: I haz the power
9 years, 2 months ago (2011-10-24 19:46:41 UTC) #13
Can't process patch for file chrome/browser/sync/util/cryptographer.h.
File's status is None, patchset upload is incomplete.

Powered by Google App Engine
This is Rietveld 408576698