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

Issue 10825160: gdata: Cleanup GDataFileSystem::AddUploadedFileOnUIThread(). (Closed)

Created:
8 years, 4 months ago by hshi1
Modified:
8 years, 4 months ago
Reviewers:
achuithb, satorux1
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

gdata: Cleanup GDataFileSystem::AddUploadedFileOnUIThread(). Use ScopedClosureRunner to simplify callback invocation. This ensures the callback is always either invoked or passed on, and eliminates the need to DCHECK(!callback.is_null()). BUG=none TEST=unit_tests, manual upload tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149706

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add comment to explain the ScopedClosureRunner. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -13 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 chunks +9 lines, -13 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hshi1
Hi I recently stumbled upon the class base::ScopedClosureRunner, and I'm wondering if it would be ...
8 years, 4 months ago (2012-08-02 19:00:09 UTC) #1
achuithb
I like it! lgtm
8 years, 4 months ago (2012-08-02 19:07:31 UTC) #2
achuithb
http://codereview.chromium.org/10825160/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10825160/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode3530 chrome/browser/chromeos/gdata/gdata_file_system.cc:3530: base::ScopedClosureRunner callback_runner(callback); nit: Please add a comment since this ...
8 years, 4 months ago (2012-08-02 19:08:37 UTC) #3
satorux1
lgtm. Thank you for sharing the finding! http://codereview.chromium.org/10825160/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10825160/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode3530 chrome/browser/chromeos/gdata/gdata_file_system.cc:3530: base::ScopedClosureRunner callback_runner(callback); ...
8 years, 4 months ago (2012-08-02 19:41:13 UTC) #4
hshi1
http://codereview.chromium.org/10825160/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10825160/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode3530 chrome/browser/chromeos/gdata/gdata_file_system.cc:3530: base::ScopedClosureRunner callback_runner(callback); On 2012/08/02 19:08:37, achuith.bhandarkar wrote: > nit: ...
8 years, 4 months ago (2012-08-02 19:55:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10825160/10002
8 years, 4 months ago (2012-08-02 19:55:43 UTC) #6
commit-bot: I haz the power
8 years, 4 months ago (2012-08-02 21:43:26 UTC) #7
Change committed as 149706

Powered by Google App Engine
This is Rietveld 408576698