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

Issue 12387021: Move the responsibility to convert from JSON to FileResource into drive_api_operations. (Closed)

Created:
7 years, 9 months ago by hidehiko
Modified:
7 years, 9 months ago
Reviewers:
hashimoto, kinaba
CC:
chromium-reviews, achuith+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Move the responsibility to convert from JSON to FileResource into drive_api_operations. These are two purposes of this change. 1) Resolve the asymmetricity of the JSON and typed C++ conversion. Now, operation classes take the C++ parameters and format them into JSON. However, the response is converted in DriveAPIService. This CL resolves the asymmetricity for FileResource. 2) This is also the preparation of the ResumeUploadOperation implementation. BUG=148632 TEST=Ran unit_tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185495

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Minor fix to address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -32 lines) Patch
M chrome/browser/google_apis/drive_api_operations.h View 1 2 4 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/google_apis/drive_api_operations.cc View 1 2 5 chunks +18 lines, -14 lines 0 comments Download
M chrome/browser/google_apis/drive_api_operations_unittest.cc View 1 2 4 chunks +23 lines, -6 lines 0 comments Download
M chrome/browser/google_apis/drive_api_service.cc View 2 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hidehiko
Thank you for your review in advance, - hidehiko
7 years, 9 months ago (2013-02-28 19:11:37 UTC) #1
kinaba
lgtm
7 years, 9 months ago (2013-03-01 02:22:51 UTC) #2
hashimoto
lgtm with nits https://codereview.chromium.org/12387021/diff/1/chrome/browser/google_apis/drive_api_operations.h File chrome/browser/google_apis/drive_api_operations.h (right): https://codereview.chromium.org/12387021/diff/1/chrome/browser/google_apis/drive_api_operations.h#newcode10 chrome/browser/google_apis/drive_api_operations.h:10: #include "base/callback.h" nit: Can't this be ...
7 years, 9 months ago (2013-03-01 02:29:18 UTC) #3
hidehiko
Thank you for your review. Submitting in order... https://codereview.chromium.org/12387021/diff/1/chrome/browser/google_apis/drive_api_operations.h File chrome/browser/google_apis/drive_api_operations.h (right): https://codereview.chromium.org/12387021/diff/1/chrome/browser/google_apis/drive_api_operations.h#newcode10 chrome/browser/google_apis/drive_api_operations.h:10: #include ...
7 years, 9 months ago (2013-03-01 03:53:55 UTC) #4
hashimoto
lgtm
7 years, 9 months ago (2013-03-01 03:55:13 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/12387021/10002
7 years, 9 months ago (2013-03-01 03:58:16 UTC) #6
commit-bot: I haz the power
7 years, 9 months ago (2013-03-01 08:07:48 UTC) #7
Message was sent while issue was closed.
Change committed as 185495

Powered by Google App Engine
This is Rietveld 408576698