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

Issue 1969313005: [headless] Embed pak file into binary. (Closed)

Created:
4 years, 7 months ago by altimin
Modified:
3 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[headless] Embed pak file into binary. Embed headless_lib.pak into headless chromium binary. Also make necessary changes to ui::ResourceBundle and ui::DataPack to make this possible. R=alexclarke@chromium.org,skyostil@chromium.org BUG=610673 Review-Url: https://codereview.chromium.org/1969313005 Cr-Commit-Position: refs/heads/master@{#449263} Committed: https://chromium.googlesource.com/chromium/src/+/6ed1a70ef94814ec92966802be57c3a36d71b7f9

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixes according to comments #

Total comments: 10

Patch Set 3 : Fix. #

Total comments: 22

Patch Set 4 : Fixes according to comments. #

Total comments: 2

Patch Set 5 : Fixes according to comments. #

Total comments: 24

Patch Set 6 : Changes according to review comments. #

Patch Set 7 : Rebased #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased #

Patch Set 10 : Rebased #

Patch Set 11 : Resurrected #

Total comments: 20

Patch Set 12 : address comments from sky@ #

Patch Set 13 : fix build/args/headless.gn #

Total comments: 4

Patch Set 14 : updated years in copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -34 lines) Patch
M build/args/headless.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M headless/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 5 chunks +48 lines, -1 line 0 comments Download
A headless/headless.gni View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
A headless/lib/embed_data.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +96 lines, -0 lines 0 comments Download
M headless/lib/headless_content_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -0 lines 0 comments Download
A headless/lib/util/embedded_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +22 lines, -0 lines 0 comments Download
M ui/base/resource/data_pack.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -4 lines 0 comments Download
M ui/base/resource/data_pack.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +82 lines, -29 lines 0 comments Download
M ui/base/resource/data_pack_unittest.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (17 generated)
altimin
4 years, 7 months ago (2016-05-12 17:08:22 UTC) #1
alex clarke (OOO till 29th)
https://codereview.chromium.org/1969313005/diff/1/ui/base/resource/data_pack.h File ui/base/resource/data_pack.h (right): https://codereview.chromium.org/1969313005/diff/1/ui/base/resource/data_pack.h#newcode54 ui/base/resource/data_pack.h:54: bool LoadFromBuffer(base::StringPiece buffer); bikeshed: Should this be InitializeFromBuffer? Sami ...
4 years, 7 months ago (2016-05-12 17:31:04 UTC) #2
altimin
PTAL https://codereview.chromium.org/1969313005/diff/1/ui/base/resource/data_pack.h File ui/base/resource/data_pack.h (right): https://codereview.chromium.org/1969313005/diff/1/ui/base/resource/data_pack.h#newcode54 ui/base/resource/data_pack.h:54: bool LoadFromBuffer(base::StringPiece buffer); On 2016/05/12 17:31:04, alex clarke ...
4 years, 7 months ago (2016-05-12 18:07:53 UTC) #4
Sami
Looks great! https://codereview.chromium.org/1969313005/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/1969313005/diff/20001/headless/BUILD.gn#newcode50 headless/BUILD.gn:50: # Consider zipping file here, it can ...
4 years, 7 months ago (2016-05-16 10:00:20 UTC) #5
altimin
PTAL. https://codereview.chromium.org/1969313005/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/1969313005/diff/20001/headless/BUILD.gn#newcode50 headless/BUILD.gn:50: # Consider zipping file here, it can reduce ...
4 years, 7 months ago (2016-05-16 14:32:50 UTC) #6
altimin
PTAL. https://codereview.chromium.org/1969313005/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/1969313005/diff/20001/headless/BUILD.gn#newcode50 headless/BUILD.gn:50: # Consider zipping file here, it can reduce ...
4 years, 7 months ago (2016-05-16 14:32:50 UTC) #7
Sami
Thanks, headless/ lgtm.
4 years, 7 months ago (2016-05-16 15:06:00 UTC) #8
sadrul
https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/data_pack.cc#newcode68 ui/base/resource/data_pack.cc:68: ~MemoryMappedDataSource() override{}; space between override and {}. No ; ...
4 years, 7 months ago (2016-05-17 15:07:51 UTC) #9
altimin
PTAL. https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/data_pack.cc#newcode68 ui/base/resource/data_pack.cc:68: ~MemoryMappedDataSource() override{}; On 2016/05/17 15:07:50, sadrul wrote: > ...
4 years, 7 months ago (2016-05-17 15:40:08 UTC) #10
sadrul
+sky@ lgtm. But please wait for sky@'s review as well. https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/resource_bundle.cc#newcode366 ...
4 years, 7 months ago (2016-05-19 18:28:27 UTC) #12
altimin
https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/1969313005/diff/40001/ui/base/resource/resource_bundle.cc#newcode366 ui/base/resource/resource_bundle.cc:366: is_test_resources_ = true; On 2016/05/19 18:28:26, sadrul wrote: > ...
4 years, 7 months ago (2016-05-19 19:23:30 UTC) #13
sky
https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc#newcode69 ui/base/resource/data_pack.cc:69: virtual ~DataSource() {}; no ; https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc#newcode79 ui/base/resource/data_pack.cc:79: MemoryMappedDataSource(std::unique_ptr<base::MemoryMappedFile> mmap) ...
4 years, 7 months ago (2016-05-19 20:25:55 UTC) #14
altimin
PTAL https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc#newcode69 ui/base/resource/data_pack.cc:69: virtual ~DataSource() {}; On 2016/05/19 20:25:54, sky wrote: ...
4 years, 7 months ago (2016-05-19 23:04:48 UTC) #15
sky
https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/80001/ui/base/resource/data_pack.cc#newcode94 ui/base/resource/data_pack.cc:94: class BufferDataSource : public DataPack::DataSource { On 2016/05/19 23:04:47, ...
4 years, 7 months ago (2016-05-20 15:49:04 UTC) #16
alex clarke (OOO till 29th)
Would you mind rebasing this?
4 years, 2 months ago (2016-10-20 10:49:58 UTC) #17
altimin
Resurrected this patch after some time. skyostil@, sky@ PTAL.
3 years, 10 months ago (2017-02-08 18:20:49 UTC) #20
sky
https://codereview.chromium.org/1969313005/diff/200001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/200001/ui/base/resource/data_pack.cc#newcode71 ui/base/resource/data_pack.cc:71: class DataPack::DataSource { Add description. https://codereview.chromium.org/1969313005/diff/200001/ui/base/resource/data_pack.cc#newcode75 ui/base/resource/data_pack.cc:75: virtual size_t ...
3 years, 10 months ago (2017-02-08 22:22:59 UTC) #23
altimin
Thanks for quick review, PTAL. https://codereview.chromium.org/1969313005/diff/200001/ui/base/resource/data_pack.cc File ui/base/resource/data_pack.cc (right): https://codereview.chromium.org/1969313005/diff/200001/ui/base/resource/data_pack.cc#newcode71 ui/base/resource/data_pack.cc:71: class DataPack::DataSource { On ...
3 years, 10 months ago (2017-02-09 00:13:52 UTC) #24
sky
LGTM
3 years, 10 months ago (2017-02-09 00:33:43 UTC) #25
altimin
+jochen@ for build/args/headless.gn
3 years, 10 months ago (2017-02-09 08:18:06 UTC) #26
altimin
+jochen@ for build/args/headless.gn for real
3 years, 10 months ago (2017-02-09 08:18:33 UTC) #28
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-09 08:19:06 UTC) #29
Sami
lgtm. https://codereview.chromium.org/1969313005/diff/240001/headless/lib/embed_data.py File headless/lib/embed_data.py (right): https://codereview.chromium.org/1969313005/diff/240001/headless/lib/embed_data.py#newcode9 headless/lib/embed_data.py:9: COPYRIGHT="""// Copyright 2016 The Chromium Authors. All rights ...
3 years, 10 months ago (2017-02-09 10:46:59 UTC) #36
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/1969313005/260001
3 years, 10 months ago (2017-02-09 11:10:32 UTC) #39
altimin
https://codereview.chromium.org/1969313005/diff/240001/headless/lib/embed_data.py File headless/lib/embed_data.py (right): https://codereview.chromium.org/1969313005/diff/240001/headless/lib/embed_data.py#newcode9 headless/lib/embed_data.py:9: COPYRIGHT="""// Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-09 11:13:47 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 12:00:17 UTC) #43
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/6ed1a70ef94814ec92966802be57...

Powered by Google App Engine
This is Rietveld 408576698