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

Issue 1951703002: [Sync] Clear LocalDeviceInfoProvider cache on sync DB destruction. (Closed)

Created:
4 years, 7 months ago by maxbogue
Modified:
4 years, 7 months ago
Reviewers:
skym, pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Clear LocalDeviceInfoProvider cache on sync DB destruction. Previously this cache would continue returning the old cache GUID and DeviceInfo, which are no longer valid after directory destruction. BUG=607287 Committed: https://crrev.com/931c0e91a7501df49fb488d978e64e1632cef37a Cr-Commit-Position: refs/heads/master@{#391729}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move NonThreadSafe to LocalDeviceInfoProviderImpl. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -32 lines) Patch
M components/browser_sync/browser/profile_sync_service.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_unittest.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M components/sync_driver/local_device_info_provider.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M components/sync_driver/local_device_info_provider_impl.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M components/sync_driver/local_device_info_provider_impl.cc View 5 chunks +20 lines, -1 line 0 comments Download
M components/sync_driver/local_device_info_provider_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/local_device_info_provider_mock.cc View 3 chunks +10 lines, -2 lines 0 comments Download
M components/sync_driver/local_device_info_provider_unittest.cc View 4 chunks +68 lines, -21 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
maxbogue
Pavel, PTAL!
4 years, 7 months ago (2016-05-04 01:35:04 UTC) #2
skym
lgtm
4 years, 7 months ago (2016-05-04 14:48:48 UTC) #4
pavely
lgtm with one comment. https://codereview.chromium.org/1951703002/diff/1/components/sync_driver/local_device_info_provider.h File components/sync_driver/local_device_info_provider.h (right): https://codereview.chromium.org/1951703002/diff/1/components/sync_driver/local_device_info_provider.h#newcode24 components/sync_driver/local_device_info_provider.h:24: class LocalDeviceInfoProvider : public base::NonThreadSafe ...
4 years, 7 months ago (2016-05-04 22:22:10 UTC) #5
maxbogue
https://codereview.chromium.org/1951703002/diff/1/components/sync_driver/local_device_info_provider.h File components/sync_driver/local_device_info_provider.h (right): https://codereview.chromium.org/1951703002/diff/1/components/sync_driver/local_device_info_provider.h#newcode24 components/sync_driver/local_device_info_provider.h:24: class LocalDeviceInfoProvider : public base::NonThreadSafe { On 2016/05/04 22:22:10, ...
4 years, 7 months ago (2016-05-04 23:19:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1951703002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1951703002/20001
4 years, 7 months ago (2016-05-04 23:20:06 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-05 02:06:08 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 02:07:21 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/931c0e91a7501df49fb488d978e64e1632cef37a
Cr-Commit-Position: refs/heads/master@{#391729}

Powered by Google App Engine
This is Rietveld 408576698