drive: Fix DriveFileStreamReader to run cancel closure on the right thread

BUG=None

Review URL: https://codereview.chromium.org/98833003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238399 0039d316-1c4b-4281-b951-d872f2087c98
parent 1279de13
...@@ -360,7 +360,7 @@ void DriveFileStreamReader::InitializeAfterGetFileContentInitialized( ...@@ -360,7 +360,7 @@ void DriveFileStreamReader::InitializeAfterGetFileContentInitialized(
// needed and and invalidate weak pointers so that we won't // needed and and invalidate weak pointers so that we won't
// receive unwanted callbacks. // receive unwanted callbacks.
if (!ui_cancel_download_closure.is_null()) if (!ui_cancel_download_closure.is_null())
ui_cancel_download_closure.Run(); RunTaskOnUIThread(ui_cancel_download_closure);
weak_ptr_factory_.InvalidateWeakPtrs(); weak_ptr_factory_.InvalidateWeakPtrs();
callback.Run( callback.Run(
net::ERR_REQUEST_RANGE_NOT_SATISFIABLE, scoped_ptr<ResourceEntry>()); net::ERR_REQUEST_RANGE_NOT_SATISFIABLE, scoped_ptr<ResourceEntry>());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment