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

Issue 1025553006: Fix error handling of CopyFileFromLocal and remove unnecessary PendingRequestDone. (Closed)

Created:
5 years, 9 months ago by yawano
Modified:
5 years, 9 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, Lei Zhang, tommycli, Greg Billock, vandebo (ex-Chrome)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix error handling of CopyFileFromLocal and remove unnecessary PendingRequestDone. Error codes which CopyInForeignFile(CopyFileFromLocal) returns are defined in the definition of async_file_util.h. BUG=413541 TEST=manually tested. Committed: https://crrev.com/bc1b5cbc3ad7704bbac6c93105a803706250d826 Cr-Commit-Position: refs/heads/master@{#322522}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix #

Total comments: 2

Patch Set 3 : Fix error handling for src_path is directory case. #

Total comments: 2

Patch Set 4 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -33 lines) Patch
M chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.h View 1 2 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc View 1 2 3 10 chunks +70 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
yawano
Extracted the other fixes from crrev.com/1030523002. PTAL. Thank you!
5 years, 9 months ago (2015-03-24 01:32:35 UTC) #2
Lei Zhang
https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode296 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:296: int file_descriptor = open(file_path, flags); Before you open the ...
5 years, 9 months ago (2015-03-24 08:49:03 UTC) #3
yawano
Thank you for the review! PTAL. https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode296 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:296: int file_descriptor = ...
5 years, 9 months ago (2015-03-25 05:01:32 UTC) #4
Lei Zhang
https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode296 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:296: int file_descriptor = open(file_path, flags); On 2015/03/25 05:01:32, yawano ...
5 years, 9 months ago (2015-03-27 00:08:20 UTC) #5
yawano
PTAL. Thank you! https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/1025553006/diff/1/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode296 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:296: int file_descriptor = open(file_path, flags); On ...
5 years, 9 months ago (2015-03-27 01:53:00 UTC) #6
Lei Zhang
lgtm https://codereview.chromium.org/1025553006/diff/40001/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/1025553006/diff/40001/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode292 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:292: // second is errno if it failed. nit: ...
5 years, 9 months ago (2015-03-27 01:55:32 UTC) #7
yawano
Thank you! https://codereview.chromium.org/1025553006/diff/40001/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc File chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc (right): https://codereview.chromium.org/1025553006/diff/40001/chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc#newcode292 chrome/browser/media_galleries/linux/mtp_device_delegate_impl_linux.cc:292: // second is errno if it failed. ...
5 years, 9 months ago (2015-03-27 02:05:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025553006/60001
5 years, 9 months ago (2015-03-27 02:06:06 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-27 02:59:51 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 03:00:32 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bc1b5cbc3ad7704bbac6c93105a803706250d826
Cr-Commit-Position: refs/heads/master@{#322522}

Powered by Google App Engine
This is Rietveld 408576698