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

Issue 374063002: [fsp] Fix crash because of calling net::GetMimeTypeFromFile on UI thread. (Closed)

Created:
6 years, 5 months ago by mtomasz
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

[fsp] Fix crash because of calling net::GetMimeTypeFromFile on UI thread. This patch fixes the issue by calling net::GetMimeTypeFromFile on the blocking pool. TEST=unit_tests: *FileHandlersMimeUtilTest*" BUG=392072 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282048

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixed a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -23 lines) Patch
M chrome/browser/extensions/api/file_handlers/mime_util.cc View 1 5 chunks +59 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc View 5 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mtomasz
@kinaba: PTAL. Thanks.
6 years, 5 months ago (2014-07-08 08:15:32 UTC) #1
kinaba
lgtm
6 years, 5 months ago (2014-07-08 08:29:59 UTC) #2
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-08 08:30:21 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/374063002/1
6 years, 5 months ago (2014-07-08 08:31:58 UTC) #4
mtomasz
@kalman: PTAL since @benwells is OOO. Thanks.
6 years, 5 months ago (2014-07-08 09:52:24 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 10:16:17 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 10:19:23 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/78453)
6 years, 5 months ago (2014-07-08 10:19:24 UTC) #8
not at google - send to devlin
https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util.cc File chrome/browser/extensions/api/file_handlers/mime_util.cc (right): https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util.cc#newcode65 chrome/browser/extensions/api/file_handlers/mime_util.cc:65: // MIME type not available with metadata, hence try ...
6 years, 5 months ago (2014-07-08 16:02:29 UTC) #9
mtomasz
https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util.cc File chrome/browser/extensions/api/file_handlers/mime_util.cc (right): https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util.cc#newcode65 chrome/browser/extensions/api/file_handlers/mime_util.cc:65: // MIME type not available with metadata, hence try ...
6 years, 5 months ago (2014-07-09 02:21:02 UTC) #10
not at google - send to devlin
lgtm https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util.cc File chrome/browser/extensions/api/file_handlers/mime_util.cc (right): https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util.cc#newcode69 chrome/browser/extensions/api/file_handlers/mime_util.cc:69: mime_type_from_extension.get(); On 2014/07/09 02:21:02, mtomasz wrote: > On ...
6 years, 5 months ago (2014-07-09 02:38:21 UTC) #11
mtomasz
https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc File chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc (right): https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc#newcode129 chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc:129: // flush it at least 6 times. This is ...
6 years, 5 months ago (2014-07-09 03:55:43 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc File chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc (right): https://codereview.chromium.org/374063002/diff/1/chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc#newcode129 chrome/browser/extensions/api/file_handlers/mime_util_unittest.cc:129: // flush it at least 6 times. This is ...
6 years, 5 months ago (2014-07-09 13:23:50 UTC) #13
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 13:52:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/374063002/20001
6 years, 5 months ago (2014-07-09 13:53:28 UTC) #15
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 14:11:31 UTC) #16
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 14:11:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/374063002/20001
6 years, 5 months ago (2014-07-09 14:13:11 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 15:55:56 UTC) #19
Message was sent while issue was closed.
Change committed as 282048

Powered by Google App Engine
This is Rietveld 408576698