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

Issue 2464333004: arc: Convert content: and file: URLs from ARC to externalfile: URLs (Closed)

Created:
4 years, 1 month ago by hashimoto
Modified:
3 years, 4 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Convert content: and file: URLs from ARC to externalfile: URLs BUG=654684 Committed: https://crrev.com/4fd6d1e812d0848c8cf817da160664e548ba3a87 Cr-Commit-Position: refs/heads/master@{#432415}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 2 chunks +9 lines, -1 line 2 comments Download

Depends on Patchset:

Messages

Total messages: 21 (11 generated)
hashimoto
Sorry for spamming you with CLs. Please review these CLs at your convenience. This is ...
4 years, 1 month ago (2016-11-02 08:49:41 UTC) #4
hidehiko
LGTM, but you'll need review by an OWNER.
4 years, 1 month ago (2016-11-10 07:14:05 UTC) #7
hashimoto
oshima, Could you review this change as an owner of this file?
4 years, 1 month ago (2016-11-11 00:51:01 UTC) #9
oshima
lgtm https://codereview.chromium.org/2464333004/diff/1/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/2464333004/diff/1/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode410 chrome/browser/ui/ash/chrome_shell_delegate.cc:410: if (!url.is_valid()) Just curious. Is there any reason ...
4 years, 1 month ago (2016-11-11 01:13:25 UTC) #10
hashimoto
https://codereview.chromium.org/2464333004/diff/1/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/2464333004/diff/1/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode410 chrome/browser/ui/ash/chrome_shell_delegate.cc:410: if (!url.is_valid()) On 2016/11/11 01:13:25, oshima wrote: > Just ...
4 years, 1 month ago (2016-11-11 01:26:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2464333004/1
4 years, 1 month ago (2016-11-16 04:36:57 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-16 07:16:32 UTC) #14
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4fd6d1e812d0848c8cf817da160664e548ba3a87 Cr-Commit-Position: refs/heads/master@{#432415}
4 years, 1 month ago (2016-11-16 07:18:48 UTC) #16
vkuzkokov
This breaks ARC printing. https://cs.chromium.org/chromium/src/chrome/browser/chromeos/arc/print/arc_print_service.cc?q=arc_print_service.cc&l=128 Is there still a way to use actual file: from ...
3 years, 4 months ago (2017-08-03 09:28:06 UTC) #18
hashimoto
3 years, 4 months ago (2017-08-04 10:32:49 UTC) #21
Message was sent while issue was closed.
On 2017/08/03 09:28:06, vkuzkokov wrote:
> This breaks ARC printing.
>
https://cs.chromium.org/chromium/src/chrome/browser/chromeos/arc/print/arc_pr...
> Is there still a way to use actual file: from print service?

Sorry for causing you trouble.
This OpenUrlFromArc() implementation handles the given file: URL as one in the
ARC container which chrome cannot access directly, so it converts the ARC
container file: URL to an externalfile: URL which will be handled by
ExternalFileURLRequestJob & ArcContentFileSystemFileStreamReader.

Instead of OpenUrlFromArc(), how about using platform_util::OpenItem() to open
the PDF file?
https://chromium.googlesource.com/chromium/src/+/8a5b373dc09c2d8667a744df0dea...
Because your ArcPrintService code is located under chrome/browser, you don't
necessarily have to use ShellDelegate to open a new tab.

Powered by Google App Engine
This is Rietveld 408576698