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

Issue 2544683002: [MD settings] i18n source stream filtering (Closed)

Created:
4 years ago by dschuyler
Modified:
4 years ago
Reviewers:
clamy, Dan Beam, mmenke
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD settings] i18n source stream filtering This CL performs the i18n template replacement in a source stream so that i18n replacement can be used with gzip streaming decompression. (This TBR is for adding a .cc and .h file to an existing set of files). TBR=clamy@chromium.org BUG=None Committed: https://crrev.com/613a10351e8b6f94e54dba52226ec9b4e5451060 Cr-Commit-Position: refs/heads/master@{#438890}

Patch Set 1 : cl format #

Total comments: 6

Patch Set 2 : build test #

Patch Set 3 : removed export #

Total comments: 12

Patch Set 4 : checking mime type #

Patch Set 5 : Finalize replacements #

Total comments: 4

Patch Set 6 : nits #

Patch Set 7 : added unit test #

Total comments: 22

Patch Set 8 : review changes #

Patch Set 9 : review changes; merge with master #

Total comments: 6

Patch Set 10 : review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -29 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A content/browser/webui/i18n_source_stream.h View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A content/browser/webui/i18n_source_stream.cc View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -0 lines 0 comments Download
A content/browser/webui/i18n_source_stream_unittest.cc View 1 2 3 4 5 6 1 chunk +221 lines, -0 lines 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 7 chunks +28 lines, -4 lines 0 comments Download
M content/browser/webui/url_data_source_impl.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/webui/url_data_source_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/webui/web_ui_data_source_impl.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -2 lines 0 comments Download
M content/browser/webui/web_ui_data_source_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -19 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 95 (66 generated)
Dan Beam
i know this isn't ready for review yet, but this might help you https://codereview.chromium.org/2544683002/diff/40001/content/browser/webui/i18n_source_stream.h File ...
4 years ago (2016-12-01 05:57:22 UTC) #14
dschuyler
https://codereview.chromium.org/2544683002/diff/40001/content/browser/webui/i18n_source_stream.h File content/browser/webui/i18n_source_stream.h (right): https://codereview.chromium.org/2544683002/diff/40001/content/browser/webui/i18n_source_stream.h#newcode26 content/browser/webui/i18n_source_stream.h:26: SourceStream::SourceType type); On 2016/12/01 05:57:22, Dan Beam wrote: > ...
4 years ago (2016-12-01 23:07:26 UTC) #22
Dan Beam
otherwise looking good https://codereview.chromium.org/2544683002/diff/80001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/80001/content/browser/webui/i18n_source_stream.cc#newcode18 content/browser/webui/i18n_source_stream.cc:18: DCHECK(replacements); #include "base/logging.h" for DCHECK https://codereview.chromium.org/2544683002/diff/80001/content/browser/webui/i18n_source_stream.cc#newcode36 ...
4 years ago (2016-12-01 23:32:23 UTC) #23
dschuyler
https://codereview.chromium.org/2544683002/diff/80001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/80001/content/browser/webui/i18n_source_stream.cc#newcode18 content/browser/webui/i18n_source_stream.cc:18: DCHECK(replacements); On 2016/12/01 23:32:22, Dan Beam wrote: > #include ...
4 years ago (2016-12-02 20:14:01 UTC) #24
Dan Beam
did you mean to upload a new patchset?
4 years ago (2016-12-02 23:19:11 UTC) #25
dschuyler
On 2016/12/02 23:19:11, Dan Beam wrote: > did you mean to upload a new patchset? ...
4 years ago (2016-12-02 23:22:51 UTC) #28
Dan Beam
i don't think we need to add new members or API to process only text/html ...
4 years ago (2016-12-02 23:54:47 UTC) #29
dschuyler
4 years ago (2016-12-03 02:19:19 UTC) #41
Dan Beam
lgtm, but you should add a unit test for I18nSourceStream https://codereview.chromium.org/2544683002/diff/160001/content/browser/webui/url_data_manager_backend.cc File content/browser/webui/url_data_manager_backend.cc (right): https://codereview.chromium.org/2544683002/diff/160001/content/browser/webui/url_data_manager_backend.cc#newcode720 ...
4 years ago (2016-12-03 02:25:29 UTC) #42
dschuyler
https://codereview.chromium.org/2544683002/diff/160001/content/browser/webui/url_data_manager_backend.cc File content/browser/webui/url_data_manager_backend.cc (right): https://codereview.chromium.org/2544683002/diff/160001/content/browser/webui/url_data_manager_backend.cc#newcode720 content/browser/webui/url_data_manager_backend.cc:720: if (source->source()->GetMimeType(path) == "text/html") On 2016/12/03 02:25:28, Dan Beam ...
4 years ago (2016-12-03 02:44:57 UTC) #49
dschuyler
Added unit tests modeled after the gzip source stream unit tests.
4 years ago (2016-12-07 01:54:41 UTC) #54
Dan Beam
i don't really understand the unit test all too well, but i'm sure there's something ...
4 years ago (2016-12-07 03:12:46 UTC) #55
mmenke
On 2016/12/07 03:12:46, Dan Beam wrote: > i don't really understand the unit test all ...
4 years ago (2016-12-08 23:29:53 UTC) #58
dschuyler
On 2016/12/08 23:29:53, mmenke wrote: > On 2016/12/07 03:12:46, Dan Beam wrote: > > i ...
4 years ago (2016-12-09 00:01:57 UTC) #59
mmenke
https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc#newcode48 content/browser/webui/i18n_source_stream.cc:48: input_.append(input_buffer->data(), input_buffer_size); I assume there's no way for non-chrome ...
4 years ago (2016-12-09 18:40:17 UTC) #60
dschuyler
Thanks! I gave some explanation on some of the comments, I'm good with making the ...
4 years ago (2016-12-09 22:31:17 UTC) #63
mmenke
https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc#newcode48 content/browser/webui/i18n_source_stream.cc:48: input_.append(input_buffer->data(), input_buffer_size); On 2016/12/09 22:31:17, dschuyler wrote: > On ...
4 years ago (2016-12-09 22:54:09 UTC) #66
mmenke
https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc#newcode48 content/browser/webui/i18n_source_stream.cc:48: input_.append(input_buffer->data(), input_buffer_size); On 2016/12/09 22:54:08, mmenke wrote: > On ...
4 years ago (2016-12-09 22:55:21 UTC) #67
dschuyler
https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc#newcode48 content/browser/webui/i18n_source_stream.cc:48: input_.append(input_buffer->data(), input_buffer_size); On 2016/12/09 22:54:08, mmenke wrote: > On ...
4 years ago (2016-12-10 00:05:55 UTC) #70
dschuyler
On 2016/12/10 00:05:55, dschuyler wrote: > https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc > File content/browser/webui/i18n_source_stream.cc (right): > > https://codereview.chromium.org/2544683002/diff/220001/content/browser/webui/i18n_source_stream.cc#newcode48 > ...
4 years ago (2016-12-14 00:15:58 UTC) #73
mmenke
Sorry, took Monday off, and lost this in the flood of reviews I had waiting ...
4 years ago (2016-12-14 16:01:50 UTC) #74
mmenke
LGTM, sorry again for the delay. A couple tiny suggestions. https://codereview.chromium.org/2544683002/diff/260001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/260001/content/browser/webui/i18n_source_stream.cc#newcode44 ...
4 years ago (2016-12-14 16:10:45 UTC) #75
dschuyler
https://codereview.chromium.org/2544683002/diff/260001/content/browser/webui/i18n_source_stream.cc File content/browser/webui/i18n_source_stream.cc (right): https://codereview.chromium.org/2544683002/diff/260001/content/browser/webui/i18n_source_stream.cc#newcode44 content/browser/webui/i18n_source_stream.cc:44: bool upstream_end_reached) { On 2016/12/14 16:10:45, mmenke (Out Dec ...
4 years ago (2016-12-15 00:17:09 UTC) #78
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/2544683002/280001
4 years ago (2016-12-15 01:21:39 UTC) #83
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/326460)
4 years ago (2016-12-15 01:31:24 UTC) #85
dschuyler
clamy@ for OWNER on content/browser/BUILD.gn (I believe it's just that one file that needs owner ...
4 years ago (2016-12-15 02:12:14 UTC) #87
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/2544683002/280001
4 years ago (2016-12-15 19:15:32 UTC) #90
commit-bot: I haz the power
Committed patchset #10 (id:280001)
4 years ago (2016-12-15 19:23:11 UTC) #93
commit-bot: I haz the power
4 years ago (2016-12-15 19:24:47 UTC) #95
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/613a10351e8b6f94e54dba52226ec9b4e5451060
Cr-Commit-Position: refs/heads/master@{#438890}

Powered by Google App Engine
This is Rietveld 408576698