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

Issue 22931003: File manager drive API: handle case where no default task is associated. (Closed)

Created:
7 years, 4 months ago by hshi1
Modified:
7 years, 4 months ago
Reviewers:
mtomasz, satorux1, tbarzic
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

File manager drive API: handle case where no default task is associated. In GetDriveEntryPropertiesFunction::OnGetFileInfo(), we should not return failure when no default task is associated with a particular MIME type. Instead we should still append all apps that support the file type. BUG=271570 TEST=manually on device, pass trybot R=satorux@chromium.org, tbarzic@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217098

Patch Set 1 #

Total comments: 2

Patch Set 2 : Toni's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hshi1
Hi Satoru and Tomasz - PTAL I believe it is incorrect to fail this call ...
7 years, 4 months ago (2013-08-12 20:28:56 UTC) #1
hshi1
+Toni in case he's familiar with the file manager default task logic.
7 years, 4 months ago (2013-08-12 20:36:10 UTC) #2
tbarzic
lgtm https://codereview.chromium.org/22931003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/22931003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode145 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:145: file_tasks::ParseTaskID(default_task_id, &default_task); afaik, ParseTaskID should never fail for ...
7 years, 4 months ago (2013-08-12 21:09:49 UTC) #3
hshi1
https://codereview.chromium.org/22931003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/22931003/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode145 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:145: file_tasks::ParseTaskID(default_task_id, &default_task); On 2013/08/12 21:09:49, tbarzic wrote: > afaik, ...
7 years, 4 months ago (2013-08-12 21:13:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/22931003/22001
7 years, 4 months ago (2013-08-12 21:23:03 UTC) #5
satorux1
oops. sorry for the regression. LGTM. we really need tests for this stuff.
7 years, 4 months ago (2013-08-12 22:13:15 UTC) #6
hshi1
7 years, 4 months ago (2013-08-12 22:26:12 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r217098 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698