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

Issue 14254002: Treat unknown MIME type as application/octet-stream when launching apps. (Closed)

Created:
7 years, 8 months ago by Sam McNally
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Treat unknown MIME type as application/octet-stream when launching apps. Previously, if the MIME type of a file passed to a file handler of a platform app, the app would be launched without the file, even if the file handler accepted * or */*. With this change, a file with an unknown MIME type is treated the same as one with a MIME type of application/octet-stream. BUG=219402 TEST=browser_test PlatformAppBrowserTest.LaunchNoType Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194789

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -17 lines) Patch
M chrome/browser/extensions/platform_app_browsertest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/platform_app_launcher.cc View 1 2 3 3 chunks +6 lines, -11 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/launch_application_octet_stream/manifest.json View 1 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/launch_application_octet_stream/test.js View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Sam McNally
7 years, 8 months ago (2013-04-15 08:05:08 UTC) #1
koz (OOO until 15th September)
lgtm with nits https://codereview.chromium.org/14254002/diff/15001/chrome/browser/extensions/platform_app_launcher.cc File chrome/browser/extensions/platform_app_launcher.cc (right): https://codereview.chromium.org/14254002/diff/15001/chrome/browser/extensions/platform_app_launcher.cc#newcode159 chrome/browser/extensions/platform_app_launcher.cc:159: if (!net::GetMimeTypeFromFile(file_path_, &mime_type)) { nit: curlies ...
7 years, 8 months ago (2013-04-16 04:56:18 UTC) #2
Sam McNally
https://codereview.chromium.org/14254002/diff/15001/chrome/browser/extensions/platform_app_launcher.cc File chrome/browser/extensions/platform_app_launcher.cc (right): https://codereview.chromium.org/14254002/diff/15001/chrome/browser/extensions/platform_app_launcher.cc#newcode159 chrome/browser/extensions/platform_app_launcher.cc:159: if (!net::GetMimeTypeFromFile(file_path_, &mime_type)) { On 2013/04/16 04:56:18, koz wrote: ...
7 years, 8 months ago (2013-04-16 05:17:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/14254002/23001
7 years, 8 months ago (2013-04-18 00:22:56 UTC) #4
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 05:51:45 UTC) #5
Message was sent while issue was closed.
Change committed as 194789

Powered by Google App Engine
This is Rietveld 408576698