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

Issue 1251823002: Initialize blink only when needed in utility processes. (Closed)

Created:
5 years, 5 months ago by Sam McNally
Modified:
5 years, 4 months ago
CC:
chrome-apps-syd-reviews_chromium.org, 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

Initialize blink only when needed in utility processes. Currently, in a utility process containing a v8 proxy resolver, both blink and the proxy resolver attempt to use v8 in incompatible ways, causing a crash on shutdown. This cl changes the utility process to only initialize blink when needed. On Windows, initializing blink with v8 before enabling the sandbox calls RtlGenRandom(), which leaves it available from within the sandbox. To avoid breaking base::RandBytes(), this cl also adds a call to base::RandBytes before enabling the sandbox. BUG=506439 Committed: https://crrev.com/6a2e8d4d42cd4c15755d338313b94cdf308219fe Cr-Commit-Position: refs/heads/master@{#340835}

Patch Set 1 : #

Patch Set 2 : initialize blink when needed #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/utility/profile_import_handler.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/utility/utility_thread.h View 1 2 3 1 chunk +3 lines, -0 lines 2 comments Download
M content/utility/utility_main.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M content/utility/utility_thread_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/utility/utility_thread_impl.cc View 1 2 3 2 chunks +13 lines, -8 lines 0 comments Download
M extensions/utility/utility_handler.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
Sam McNally
5 years, 4 months ago (2015-07-27 04:05:16 UTC) #4
jam
this probably has legacy reasons (i.e. first users of utility process all used blink). but ...
5 years, 4 months ago (2015-07-27 05:08:43 UTC) #6
Sam McNally
On 2015/07/27 05:08:43, jam wrote: > this probably has legacy reasons (i.e. first users of ...
5 years, 4 months ago (2015-07-27 08:03:50 UTC) #11
jochen (gone - plz use gerrit)
On 2015/07/27 at 08:03:50, sammc wrote: > On 2015/07/27 05:08:43, jam wrote: > > this ...
5 years, 4 months ago (2015-07-27 08:58:51 UTC) #12
Sam McNally
On 2015/07/27 08:58:51, jochen wrote: > On 2015/07/27 at 08:03:50, sammc wrote: > > On ...
5 years, 4 months ago (2015-07-27 10:39:04 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1251823002/diff/180001/content/public/utility/utility_thread.h File content/public/utility/utility_thread.h (right): https://codereview.chromium.org/1251823002/diff/180001/content/public/utility/utility_thread.h#newcode26 content/public/utility/utility_thread.h:26: virtual void EnsureBlinkInitialized() = 0; why is this API ...
5 years, 4 months ago (2015-07-27 11:35:21 UTC) #14
jam
https://codereview.chromium.org/1251823002/diff/180001/content/public/utility/utility_thread.h File content/public/utility/utility_thread.h (right): https://codereview.chromium.org/1251823002/diff/180001/content/public/utility/utility_thread.h#newcode26 content/public/utility/utility_thread.h:26: virtual void EnsureBlinkInitialized() = 0; On 2015/07/27 11:35:21, jochen ...
5 years, 4 months ago (2015-07-27 15:14:49 UTC) #15
jochen (gone - plz use gerrit)
ok, makes sense, lgtm
5 years, 4 months ago (2015-07-27 15:19:00 UTC) #16
Sam McNally
+asargent for extensions/utility/utility_handler.cc
5 years, 4 months ago (2015-07-28 00:32:13 UTC) #18
asargent_no_longer_on_chrome
lgtm
5 years, 4 months ago (2015-07-28 17:59:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251823002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251823002/180001
5 years, 4 months ago (2015-07-28 23:54:58 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:180001)
5 years, 4 months ago (2015-07-29 01:52:30 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-07-29 01:53:08 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6a2e8d4d42cd4c15755d338313b94cdf308219fe
Cr-Commit-Position: refs/heads/master@{#340835}

Powered by Google App Engine
This is Rietveld 408576698