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

Issue 14341002: Implement query translation from GData WAPI to Drive API v2. (Closed)

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

Description

Implement query translation from GData WAPI to Drive API v2. There are many gaps between search query for GData WAPI and one for Drive API v2. To fill the gap, TranslateQuery parses the query for GData WAPI and builds the one for Drive API. Unfortunately, there are missing query patterns on Drive API v2, so it only supports limited patterns. BUG=232352 TEST=Ran unit_tests and tested manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195147

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Address review comments. #

Total comments: 4

Patch Set 4 : Refine query parsing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -2 lines) Patch
M chrome/browser/google_apis/drive_api_service.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/google_apis/drive_api_util.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/drive_api_util.cc View 1 2 3 2 chunks +69 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/drive_api_util_unittest.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
hidehiko
Notes: unfortunately we cannot use base::StringTokenizer because it is unknown if the result token is ...
7 years, 8 months ago (2013-04-18 05:36:18 UTC) #1
kinaba
https://codereview.chromium.org/14341002/diff/1/chrome/browser/google_apis/drive_api_service.cc File chrome/browser/google_apis/drive_api_service.cc (right): https://codereview.chromium.org/14341002/diff/1/chrome/browser/google_apis/drive_api_service.cc#newcode219 chrome/browser/google_apis/drive_api_service.cc:219: // Quoted query (e.g. "dog cat"). Could you add ...
7 years, 8 months ago (2013-04-18 06:59:48 UTC) #2
hashimoto
https://codereview.chromium.org/14341002/diff/1/chrome/browser/google_apis/drive_api_service.cc File chrome/browser/google_apis/drive_api_service.cc (right): https://codereview.chromium.org/14341002/diff/1/chrome/browser/google_apis/drive_api_service.cc#newcode218 chrome/browser/google_apis/drive_api_service.cc:218: // Exclusion query (e.g. -cat). Please add output examples. ...
7 years, 8 months ago (2013-04-18 07:23:50 UTC) #3
hidehiko
Thank you for your review. To add unittests in a sane manner, moved the function ...
7 years, 8 months ago (2013-04-18 09:04:32 UTC) #4
kinaba
lgtm
7 years, 8 months ago (2013-04-18 09:57:05 UTC) #5
hashimoto
https://codereview.chromium.org/14341002/diff/10001/chrome/browser/google_apis/drive_api_service.cc File chrome/browser/google_apis/drive_api_service.cc (right): https://codereview.chromium.org/14341002/diff/10001/chrome/browser/google_apis/drive_api_service.cc#newcode17 chrome/browser/google_apis/drive_api_service.cc:17: #include "base/utf_string_conversions.h" nit: No need to include this? https://codereview.chromium.org/14341002/diff/10001/chrome/browser/google_apis/drive_api_util_unittest.cc ...
7 years, 8 months ago (2013-04-18 10:37:15 UTC) #6
hidehiko
Thank you for your review. PTAL? https://codereview.chromium.org/14341002/diff/10001/chrome/browser/google_apis/drive_api_service.cc File chrome/browser/google_apis/drive_api_service.cc (right): https://codereview.chromium.org/14341002/diff/10001/chrome/browser/google_apis/drive_api_service.cc#newcode17 chrome/browser/google_apis/drive_api_service.cc:17: #include "base/utf_string_conversions.h" On ...
7 years, 8 months ago (2013-04-18 12:05:54 UTC) #7
hashimoto
lgtm
7 years, 8 months ago (2013-04-18 12:35:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14341002/22001
7 years, 8 months ago (2013-04-18 16:25:13 UTC) #9
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=30145
7 years, 8 months ago (2013-04-18 18:38:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14341002/22001
7 years, 8 months ago (2013-04-18 18:51:31 UTC) #11
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=30337
7 years, 8 months ago (2013-04-18 23:41:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/14341002/22001
7 years, 8 months ago (2013-04-19 01:28:27 UTC) #13
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 12:57:23 UTC) #14
Message was sent while issue was closed.
Change committed as 195147

Powered by Google App Engine
This is Rietveld 408576698