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

Issue 11783025: Run parsing JSON into ResourceList on blocking pool. (Closed)

Created:
7 years, 11 months ago by hidehiko
Modified:
7 years, 11 months ago
Reviewers:
satorux1, kinaba
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Run parsing JSON into ResourceList on blocking pool. This CL moves the parsing JSON task from UI thread to blocking pool. Along the change, thin struct OnParseResourceListCompletedParams is introduced for memory management and adapt callback arguments. BUG=165088 TEST=Ran unit_tests and chromeos_unittests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175793

Patch Set 1 #

Patch Set 2 : Add more descriptive comments. #

Total comments: 2

Patch Set 3 : use base::Passed(scoped_ptr*) instead of base::Passed(scoped_ptr::RValue). #

Total comments: 6

Patch Set 4 : Rename completion callback. #

Patch Set 5 : Remove DidParseResourceListOnBlockingPoolParams. #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -18 lines) Patch
chrome/browser/chromeos/drive/drive_api_service.cc View 1 2 3 4 5 4 chunks +47 lines, -18 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
hidehiko
Thank you for your review in advance, - hidehiko
7 years, 11 months ago (2013-01-08 11:16:54 UTC) #1
kinaba
lgtm with a nit. https://codereview.chromium.org/11783025/diff/2001/chrome/browser/chromeos/drive/drive_api_service.cc File chrome/browser/chromeos/drive/drive_api_service.cc (right): https://codereview.chromium.org/11783025/diff/2001/chrome/browser/chromeos/drive/drive_api_service.cc#newcode92 chrome/browser/chromeos/drive/drive_api_service.cc:92: base::Passed(value.Pass()), params), You can use ...
7 years, 11 months ago (2013-01-08 11:53:16 UTC) #2
hidehiko
Thank you for your review. https://codereview.chromium.org/11783025/diff/2001/chrome/browser/chromeos/drive/drive_api_service.cc File chrome/browser/chromeos/drive/drive_api_service.cc (right): https://codereview.chromium.org/11783025/diff/2001/chrome/browser/chromeos/drive/drive_api_service.cc#newcode92 chrome/browser/chromeos/drive/drive_api_service.cc:92: base::Passed(value.Pass()), params), On 2013/01/08 ...
7 years, 11 months ago (2013-01-08 13:57:00 UTC) #3
satorux1
https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc File chrome/browser/chromeos/drive/drive_api_service.cc (right): https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc#newcode70 chrome/browser/chromeos/drive/drive_api_service.cc:70: void OnParseResourceListCompleted( Please rename this to DidParseResourceListOnBlockingPool. This naming ...
7 years, 11 months ago (2013-01-09 00:25:19 UTC) #4
satorux1
7 years, 11 months ago (2013-01-09 00:25:20 UTC) #5
hidehiko
Could you take another look? https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc File chrome/browser/chromeos/drive/drive_api_service.cc (right): https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc#newcode70 chrome/browser/chromeos/drive/drive_api_service.cc:70: void OnParseResourceListCompleted( On 2013/01/09 ...
7 years, 11 months ago (2013-01-09 05:21:51 UTC) #6
satorux1
https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc File chrome/browser/chromeos/drive/drive_api_service.cc (right): https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc#newcode83 chrome/browser/chromeos/drive/drive_api_service.cc:83: new OnParseResourceListCompletedParams; On 2013/01/09 05:21:51, hidehiko wrote: > On ...
7 years, 11 months ago (2013-01-09 05:34:15 UTC) #7
hidehiko
Couold you take another look? https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc File chrome/browser/chromeos/drive/drive_api_service.cc (right): https://codereview.chromium.org/11783025/diff/5001/chrome/browser/chromeos/drive/drive_api_service.cc#newcode83 chrome/browser/chromeos/drive/drive_api_service.cc:83: new OnParseResourceListCompletedParams; On 2013/01/09 ...
7 years, 11 months ago (2013-01-09 07:34:07 UTC) #8
satorux1
LGTM. Thanks!
7 years, 11 months ago (2013-01-09 08:13:05 UTC) #9
hidehiko
Thank you, Satoru, for you review. Rebased. Kazuhiro, could you kindly take a look, too?
7 years, 11 months ago (2013-01-09 11:31:01 UTC) #10
kinaba
On 2013/01/09 11:31:01, hidehiko wrote: > Thank you, Satoru, for you review. > > Rebased. ...
7 years, 11 months ago (2013-01-09 11:36:00 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/11783025/18001
7 years, 11 months ago (2013-01-09 11:37:51 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 13:45:57 UTC) #13
Message was sent while issue was closed.
Change committed as 175793

Powered by Google App Engine
This is Rietveld 408576698