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

Issue 1431133003: mandoline: Reland "Fix ICU initialization". (Closed)

Created:
5 years, 1 month ago by Elliot Glaysher
Modified:
5 years, 1 month ago
Reviewers:
yzshen1, jam, sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, penghuang+watch-mandoline_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, tfarina, darin (slow to review), ben+mojo_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mandoline: Reland "Fix ICU initialization". We need to complete the initialization of ICU before we raise the sandbox. That means we can't pass a file descriptor to the ICU data file across mojo pipes. Due to how Android handles resources files, we also can't pass a file descriptor around inside the same process. So pass a raw pointer to a memory mapped file during the sandbox warm-up phase, and make a new option to initialize ICU from this raw pointer. But that just uncovers a bigger issue: we don't always call what was the sandbox warming code. If it's general initialization that needs to be called before we run MojoMain(), we need to include initialization code in most all main.cc implementations. This bakes a base initialize call into the mojo application library. This fixes a crash in the page cycler set, which happens when a page tries to do date operations, which fail because of missing locale data. This fixes several crashes in local runs. [[This reland disables the sandbox on the page cycler bots because they don't have a new enough kernel to be sandboxed(!). It also includes the icu data in the mojo runner unittests.]] BUG=546644 First Review URL: https://codereview.chromium.org/1425853003 TBR=jam@chromium.org,sky@chromium.org R=yzshen@chromium.org Committed: https://crrev.com/140735acbef15c56d9ddaadd2bc58b5e26692a48 Cr-Commit-Position: refs/heads/master@{#359349}

Patch Set 1 #

Patch Set 2 : Rebase to ToT #

Patch Set 3 : Hopefully fix everything. #

Patch Set 4 : Rebase to ToT #

Patch Set 5 : gn check #

Patch Set 6 : Rebase to ToT and then fix compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -120 lines) Patch
M base/i18n/icu_util.h View 1 chunk +23 lines, -2 lines 0 comments Download
M base/i18n/icu_util.cc View 1 2 3 chunks +24 lines, -0 lines 0 comments Download
M components/html_viewer/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M components/html_viewer/global_state.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M components/html_viewer/html_viewer_main.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M components/resource_provider/BUILD.gn View 2 chunks +0 lines, -6 lines 0 comments Download
M components/resource_provider/public/cpp/resource_loader.h View 2 chunks +0 lines, -3 lines 0 comments Download
M components/resource_provider/public/cpp/resource_loader.cc View 2 chunks +0 lines, -13 lines 0 comments Download
M components/resource_provider/public/interfaces/resource_provider.mojom View 1 chunk +0 lines, -3 lines 0 comments Download
M components/resource_provider/resource_provider_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/resource_provider/resource_provider_impl.cc View 2 chunks +0 lines, -10 lines 0 comments Download
M mandoline/app/desktop/launcher_process.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M mandoline/services/core_services/BUILD.gn View 1 chunk +0 lines, -5 lines 0 comments Download
M mandoline/services/core_services/main.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M mojo/application/public/cpp/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
A mojo/application/public/cpp/initialize_base_and_icu.cc View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
M mojo/runner/BUILD.gn View 1 2 3 4 chunks +5 lines, -1 line 0 comments Download
M mojo/runner/context.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/runner/host/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/runner/host/child_process.cc View 1 2 3 4 5 3 chunks +6 lines, -9 lines 0 comments Download
M mojo/runner/host/in_process_native_runner.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/runner/init.h View 2 chunks +6 lines, -0 lines 0 comments Download
M mojo/runner/init.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/mandoline/mandoline_browser_backend.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/mus/aura_init.cc View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Elliot Glaysher
5 years, 1 month ago (2015-11-12 00:37:12 UTC) #4
Elliot Glaysher
yzshen: Sorry, I should have said what I wanted reviewed. Most of this patch was ...
5 years, 1 month ago (2015-11-12 00:46:52 UTC) #5
jam
lgtm
5 years, 1 month ago (2015-11-12 03:20:33 UTC) #6
yzshen1
On 2015/11/12 03:20:33, jam wrote: > lgtm LGTM
5 years, 1 month ago (2015-11-12 18:37:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431133003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431133003/100001
5 years, 1 month ago (2015-11-12 18:41:36 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-11-12 18:52:05 UTC) #10
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 20:08:40 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/140735acbef15c56d9ddaadd2bc58b5e26692a48
Cr-Commit-Position: refs/heads/master@{#359349}

Powered by Google App Engine
This is Rietveld 408576698