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

Issue 377413006: [SyncFS] [Refactoring] Make interfaces to handle TrackerIDSet on DB (Closed)

Created:
6 years, 5 months ago by peria
Modified:
6 years, 5 months ago
Reviewers:
nhiroki, tzik
CC:
chromium-reviews, kinuko+fileapi, nhiroki, tzik
Project:
chromium
Visibility:
Public.

Description

[SyncFS] [Refactoring] Make interfaces to handle TrackerIDSet on DB. Simulate behavior of TrackerIDSet to handle it easily. BUG=None TEST=./unit_tests --gtest_filter="MetadataDatabaseIndexOn*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282369

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Work for nits #

Total comments: 6

Patch Set 3 : Work for a nit #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -44 lines) Patch
M chrome/browser/sync_file_system/drive_backend/drive_backend_constants.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_backend_constants.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h View 1 1 chunk +37 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc View 1 2 13 chunks +113 lines, -41 lines 8 comments Download

Messages

Total messages: 12 (0 generated)
peria
PTL.
6 years, 5 months ago (2014-07-10 06:35:52 UTC) #1
tzik
https://codereview.chromium.org/377413006/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h (right): https://codereview.chromium.org/377413006/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h#newcode102 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h:102: const std::string& active_key, const std::string& key_prefix) const; s/active_key/active_item_key/ or ...
6 years, 5 months ago (2014-07-10 06:39:33 UTC) #2
tzik
https://codereview.chromium.org/377413006/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/377413006/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode502 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:502: GenerateActiveIDByFileIDKey(new_tracker.file_id()), Could you rename this to GenerateActiveTrackerIDByFileIDKey? "ActiveID" sounds ...
6 years, 5 months ago (2014-07-10 06:49:35 UTC) #3
peria
https://codereview.chromium.org/377413006/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/377413006/diff/40001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode502 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:502: GenerateActiveIDByFileIDKey(new_tracker.file_id()), On 2014/07/10 06:49:34, tzik wrote: > Could you ...
6 years, 5 months ago (2014-07-10 07:49:08 UTC) #4
tzik
lgtm https://codereview.chromium.org/377413006/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/377413006/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode700 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:700: int64 active_id; s/active_id/active_tracker_id/? https://codereview.chromium.org/377413006/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode721 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:721: int64 active_id; ditto ...
6 years, 5 months ago (2014-07-10 07:54:12 UTC) #5
peria
https://codereview.chromium.org/377413006/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/377413006/diff/60001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode700 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:700: int64 active_id; On 2014/07/10 07:54:12, tzik wrote: > s/active_id/active_tracker_id/? ...
6 years, 5 months ago (2014-07-10 07:57:05 UTC) #6
nhiroki
https://codereview.chromium.org/377413006/diff/80001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/377413006/diff/80001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode504 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:504: prefix, new_tracker, batch); How about passing only |new_tracker| and ...
6 years, 5 months ago (2014-07-10 08:40:08 UTC) #7
peria
https://codereview.chromium.org/377413006/diff/80001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/377413006/diff/80001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode504 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:504: prefix, new_tracker, batch); On 2014/07/10 08:40:08, nhiroki wrote: > ...
6 years, 5 months ago (2014-07-10 09:07:20 UTC) #8
nhiroki
Thanks for your explanation! LGTM
6 years, 5 months ago (2014-07-10 09:38:15 UTC) #9
peria
The CQ bit was checked by peria@chromium.org
6 years, 5 months ago (2014-07-10 14:28:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/377413006/80001
6 years, 5 months ago (2014-07-10 14:28:39 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 17:35:45 UTC) #12
Message was sent while issue was closed.
Change committed as 282369

Powered by Google App Engine
This is Rietveld 408576698