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

Issue 2865022: sync: add CleanupDisabledTypesCommand to purge data pertaining to previously... (Closed)

Created:
10 years, 6 months ago by tim (not reviewing)
Modified:
9 years, 6 months ago
Reviewers:
skrul
CC:
chromium-reviews, ncarter (slow), ben+cc_chromium.org, idana, Paweł Hajdan Jr., tim (not reviewing), chron_chromium.org
Visibility:
Public.

Description

sync: add CleanupDisabledTypesCommand to purge data pertaining to previously synced data types that the user has disabled. Despite my attempt at simplifying the purge code in Directory[BackingStore], I had to go back to my first attempt with DeleteEntries (which was previously reviewed separately), with a few extra gotchas in Directory::PurgeEntriesWithTypeIn. BUG=40252 TEST=CleanupDisabledTypesCommandTest, SyncableDirectoryTest, DirectoryBackingStoreTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51491

Patch Set 1 : '' #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+598 lines, -62 lines) Patch
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/sync/engine/cleanup_disabled_types_command.h View 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/sync/engine/cleanup_disabled_types_command.cc View 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/sync/engine/cleanup_disabled_types_command_unittest.cc View 1 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/process_commit_response_command_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/sync/engine/syncer.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncer.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncer_end_command.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/verify_updates_command_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sessions/sync_session_context.h View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store.cc View 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store_unittest.cc View 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/directory_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/syncable/syncable.h View 7 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 8 chunks +74 lines, -35 lines 0 comments Download
M chrome/browser/sync/syncable/syncable_unittest.cc View 3 chunks +88 lines, -6 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/sync/engine/syncer_command_test.h View 6 chunks +27 lines, -8 lines 0 comments Download
M chrome/test/sync/engine/test_directory_setter_upper.h View 3 chunks +30 lines, -0 lines 0 comments Download
M chrome/test/sync/engine/test_directory_setter_upper.cc View 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
tim (not reviewing)
Hey! It turns out there are a few cases where my previous approach didn't work, ...
10 years, 5 months ago (2010-06-30 09:13:02 UTC) #1
tim (not reviewing)
+steve for review as albert is sick. +cc chron for perusal please ask questions as ...
10 years, 5 months ago (2010-06-30 16:31:28 UTC) #2
skrul
LGTM nice work :) http://codereview.chromium.org/2865022/diff/9003/15005 File chrome/browser/sync/engine/cleanup_disabled_types_command_unittest.cc (right): http://codereview.chromium.org/2865022/diff/9003/15005#newcode12 chrome/browser/sync/engine/cleanup_disabled_types_command_unittest.cc:12: #include "testing/gtest/include/gtest/gtest.h" #include gmock http://codereview.chromium.org/2865022/diff/9003/15008 ...
10 years, 5 months ago (2010-06-30 19:16:14 UTC) #3
tim (not reviewing)
Thanks for the review, sorry I took so long to reply back. Planning on submitting ...
10 years, 5 months ago (2010-07-02 03:48:08 UTC) #4
chron
10 years, 5 months ago (2010-07-02 17:59:57 UTC) #5
I like this approach. SGTM!

On Thu, Jul 1, 2010 at 8:48 PM, <tim@chromium.org> wrote:

> Thanks for the review, sorry I took so long to reply back.
> Planning on submitting tonight!
>
>
>
> http://codereview.chromium.org/2865022/diff/9003/15005
> File
> chrome/browser/sync/engine/cleanup_disabled_types_command_unittest.cc
> (right):
>
> http://codereview.chromium.org/2865022/diff/9003/15005#newcode12
> chrome/browser/sync/engine/cleanup_disabled_types_command_unittest.cc:12:
> #include "testing/gtest/include/gtest/gtest.h"
> On 2010/06/30 19:16:15, skrul wrote:
>
>> #include gmock
>>
>
> Done.
>
>
> http://codereview.chromium.org/2865022/diff/9003/15008
> File chrome/browser/sync/engine/syncapi.cc (right):
>
> http://codereview.chromium.org/2865022/diff/9003/15008#newcode1731
> chrome/browser/sync/engine/syncapi.cc:1731:
> On 2010/06/30 19:16:15, skrul wrote:
>
>> is this space intentional?
>>
>
> nope. reverted file.
>
>
> http://codereview.chromium.org/2865022/diff/9003/15014
> File chrome/browser/sync/syncable/directory_backing_store.cc (right):
>
> http://codereview.chromium.org/2865022/diff/9003/15014#newcode269
> chrome/browser/sync/syncable/directory_backing_store.cc:269:
> query.append(Int64ToString(*it));
> On 2010/06/30 19:16:15, skrul wrote:
>
>> fyi, sqlite does have a limitation on the size of a sql statement,
>>
> looks like
>
>> chrome is using the default of 1GB.  We are probably safe :)
>>
>
> Interesting :)
>
>
> http://codereview.chromium.org/2865022/show
>

Powered by Google App Engine
This is Rietveld 408576698