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

Issue 1932753006: Figure out the MIME type of shared WebUI resources more efficiently (Closed)

Created:
4 years, 7 months ago by Dan Beam
Modified:
4 years, 7 months ago
Reviewers:
groby-ooo-7-16
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Figure out the MIME type of shared WebUI resources more efficiently Previously, GetMimeType() was posted to run on UI thread and potentially hit disk on Posix systems. This CL fixes both by adding a hardcoded list (based on `find` scraping) and requesting GetMimeType() be run from the originating thread (IO) rather than posting to UI. R=groby@chromium.org BUG=608078 Committed: https://crrev.com/8678179613c967ec865b8ee7d1abd9427bd27233 Cr-Commit-Position: refs/heads/master@{#390843}

Patch Set 1 : dcheck #

Total comments: 7

Patch Set 2 : groby@ review #

Patch Set 3 : asdf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -9 lines) Patch
M content/browser/webui/shared_resources_data_source.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/webui/shared_resources_data_source.cc View 1 2 2 chunks +43 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Dan Beam
https://codereview.chromium.org/1932753006/diff/20001/content/browser/webui/shared_resources_data_source.cc File content/browser/webui/shared_resources_data_source.cc (right): https://codereview.chromium.org/1932753006/diff/20001/content/browser/webui/shared_resources_data_source.cc#newcode110 content/browser/webui/shared_resources_data_source.cc:110: if (filepath.MatchesExtension(".html")) list derived via magic (`find ui/webui/resources/ ui/views/resources/default_*00_percent/common/ ...
4 years, 7 months ago (2016-04-29 22:39:36 UTC) #2
groby-ooo-7-16
LGTM w/ a few questions. https://codereview.chromium.org/1932753006/diff/20001/content/browser/webui/shared_resources_data_source.cc File content/browser/webui/shared_resources_data_source.cc (right): https://codereview.chromium.org/1932753006/diff/20001/content/browser/webui/shared_resources_data_source.cc#newcode105 content/browser/webui/shared_resources_data_source.cc:105: const std::string& path) const ...
4 years, 7 months ago (2016-04-29 23:39:16 UTC) #3
Dan Beam
https://codereview.chromium.org/1932753006/diff/20001/content/browser/webui/shared_resources_data_source.cc File content/browser/webui/shared_resources_data_source.cc (right): https://codereview.chromium.org/1932753006/diff/20001/content/browser/webui/shared_resources_data_source.cc#newcode105 content/browser/webui/shared_resources_data_source.cc:105: const std::string& path) const { On 2016/04/29 23:39:15, groby ...
4 years, 7 months ago (2016-04-30 00:32:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1932753006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1932753006/80001
4 years, 7 months ago (2016-04-30 02:22:12 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 7 months ago (2016-04-30 03:26:37 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:31:07 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8678179613c967ec865b8ee7d1abd9427bd27233
Cr-Commit-Position: refs/heads/master@{#390843}

Powered by Google App Engine
This is Rietveld 408576698