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

Issue 14146006: Refactoring: replace SearchInDirectory by SearchByTitle. (Closed)

Created:
7 years, 8 months ago by hidehiko
Modified:
7 years, 8 months ago
Reviewers:
kinuko, tzik, kinaba
CC:
chromium-reviews, tfarina, kinuko+watch, tzik+watch_chromium.org
Visibility:
Public.

Description

Refactoring: replace SearchInDirectory by SearchByTitle. The requirement of SearchInDirectory is just title exact-match search. This CL is the preparation of it by replacing the method by SearchByTitle. Also this moves the responsibility of escaping (and query formatting) from sync drive service to google_apis. This is because the query formatting is different between GData WAPI and Drive API v2, and the gap is filled in DriveServiceInterface layer. At the moment, this CL shouldn't change the behavior yet (i.e. still partial match). BUG=232352 TEST=Ran unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195528

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -193 lines) Patch
M chrome/browser/google_apis/drive_api_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/drive_api_service.cc View 1 2 1 chunk +14 lines, -9 lines 0 comments Download
M chrome/browser/google_apis/drive_service_interface.h View 1 chunk +7 lines, -6 lines 0 comments Download
M chrome/browser/google_apis/dummy_drive_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/dummy_drive_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/fake_drive_service.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/fake_drive_service.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/google_apis/fake_drive_service_unittest.cc View 1 2 chunks +14 lines, -46 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_service.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/google_apis/mock_drive_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client.h View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client.cc View 1 5 chunks +12 lines, -59 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc View 1 8 chunks +20 lines, -29 lines 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service_mock_unittest.cc View 1 6 chunks +13 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hidehiko
This CL is based on 14352007. I don't think we'd have huge design change on ...
7 years, 8 months ago (2013-04-18 14:18:29 UTC) #1
tzik
lgtm https://codereview.chromium.org/14146006/diff/1/chrome/browser/sync_file_system/drive_file_sync_client.cc File chrome/browser/sync_file_system/drive_file_sync_client.cc (right): https://codereview.chromium.org/14146006/diff/1/chrome/browser/sync_file_system/drive_file_sync_client.cc#newcode188 chrome/browser/sync_file_system/drive_file_sync_client.cc:188: SearchByTitle(directory_name, "", s/""/std::string()/ ? https://codereview.chromium.org/14146006/diff/1/chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc File chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc (right): ...
7 years, 8 months ago (2013-04-18 14:26:23 UTC) #2
kinaba
lgtm
7 years, 8 months ago (2013-04-19 00:16:37 UTC) #3
hidehiko
Thank you for your review, Taiju, Kazuhiro. Kinuko, would you mind to take a look, ...
7 years, 8 months ago (2013-04-22 04:24:45 UTC) #4
kinuko
lgtm2
7 years, 8 months ago (2013-04-22 06:09:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14146006/20001
7 years, 8 months ago (2013-04-22 13:04:14 UTC) #6
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 16:21:48 UTC) #7
Message was sent while issue was closed.
Change committed as 195528

Powered by Google App Engine
This is Rietveld 408576698