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

Issue 1419483002: Windows sbox: Warmup locales before sandbox lockdown (and tests) (Closed)

Created:
5 years, 2 months ago by liamjm (20p)
Modified:
5 years ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, rickyz+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes for 1324523008 which was reverted. (Due to GetUserDefaultLocaleName being available on Vista and later) Original description: Add sbox tests related to warming up of locales. Warm up locales in LowerToken() after RevertToSelf() as existing warmup was not working on Win 8.1 x64. Remove existing warmup which was done outside of LowerToken(). BUG=464430 Committed: https://crrev.com/39fb5127a8a3a3f6216e48fd97ce9388c1e92c61 Cr-Commit-Position: refs/heads/master@{#363076}

Patch Set 1 : PatchSet from issue 1324523008 #

Patch Set 2 : Add missing file from PatchSet 1 #

Patch Set 3 : load GetUserDefaultLocaleName dynamically, only use it on Vista and later #

Total comments: 1

Patch Set 4 : linting #

Patch Set 5 : return true instead of 0 #

Total comments: 1

Patch Set 6 : Fix bad patching of lpc_policy_test.cc #

Patch Set 7 : linting #

Patch Set 8 : tweak copyright line to match style guide #

Patch Set 9 : fix test assertion signed/unsigned issue on x86 #

Patch Set 10 : actually use dynamically loaded function #

Patch Set 11 : use dynamically loaded function (2) #

Total comments: 1

Patch Set 12 : tweak to use 0U #

Total comments: 2

Patch Set 13 : use decltype in function ptr typedef of GetUserDefaultLocaleName #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -14 lines) Patch
M components/nacl/loader/nacl_main_platform_delegate_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M sandbox/win/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/sandbox_win.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A sandbox/win/src/lpc_policy_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +156 lines, -0 lines 0 comments Download
M sandbox/win/src/sandbox_policy.h View 1 chunk +1 line, -1 line 0 comments Download
M sandbox/win/src/sandbox_types.h View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M sandbox/win/src/target_services.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +40 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
liamjm (20p)
Here is the fixes for issue 1324523008
5 years, 2 months ago (2015-10-21 01:19:01 UTC) #3
jochen (gone - plz use gerrit)
lgtm with comments https://codereview.chromium.org/1419483002/diff/80001/sandbox/win/src/lpc_policy_test.cc File sandbox/win/src/lpc_policy_test.cc (right): https://codereview.chromium.org/1419483002/diff/80001/sandbox/win/src/lpc_policy_test.cc#newcode1 sandbox/win/src/lpc_policy_test.cc:1: // Copyright (c) 2011 The Chromium ...
5 years, 2 months ago (2015-10-21 13:28:18 UTC) #4
Will Harris
https://codereview.chromium.org/1419483002/diff/40001/sandbox/win/src/lpc_policy_test.cc File sandbox/win/src/lpc_policy_test.cc (right): https://codereview.chromium.org/1419483002/diff/40001/sandbox/win/src/lpc_policy_test.cc#newcode35 sandbox/win/src/lpc_policy_test.cc:35: ::GetUserDefaultLCID(); was there a reason why these tests were ...
5 years, 2 months ago (2015-10-21 15:37:34 UTC) #5
liamjm (20p)
On 2015/10/21 15:37:34, Will Harris wrote: > https://codereview.chromium.org/1419483002/diff/40001/sandbox/win/src/lpc_policy_test.cc > File sandbox/win/src/lpc_policy_test.cc (right): > > https://codereview.chromium.org/1419483002/diff/40001/sandbox/win/src/lpc_policy_test.cc#newcode35 ...
5 years, 2 months ago (2015-10-21 20:11:03 UTC) #6
liamjm (20p)
On 2015/10/21 13:28:18, jochen wrote: > lgtm with comments > > https://codereview.chromium.org/1419483002/diff/80001/sandbox/win/src/lpc_policy_test.cc > File sandbox/win/src/lpc_policy_test.cc ...
5 years, 2 months ago (2015-10-21 20:11:14 UTC) #7
Ilya Sherman
histograms.xml lgtm
5 years, 2 months ago (2015-10-21 22:30:33 UTC) #8
Will Harris
On 2015/10/21 22:30:33, Ilya Sherman wrote: > histograms.xml lgtm WarmupWindowsLocales in ppapi_thread.cc does a very ...
5 years, 1 month ago (2015-11-07 01:19:26 UTC) #9
Will Harris
https://codereview.chromium.org/1419483002/diff/200001/sandbox/win/src/lpc_policy_test.cc File sandbox/win/src/lpc_policy_test.cc (right): https://codereview.chromium.org/1419483002/diff/200001/sandbox/win/src/lpc_policy_test.cc#newcode149 sandbox/win/src/lpc_policy_test.cc:149: EXPECT_NE(size_t(0), wcsnlen(locale_name, LOCALE_NAME_MAX_LENGTH)); use OU
5 years, 1 month ago (2015-11-10 20:50:20 UTC) #10
liamjm (20p)
On 2015/11/10 20:50:20, Will Harris wrote: > https://codereview.chromium.org/1419483002/diff/200001/sandbox/win/src/lpc_policy_test.cc > File sandbox/win/src/lpc_policy_test.cc (right): > > https://codereview.chromium.org/1419483002/diff/200001/sandbox/win/src/lpc_policy_test.cc#newcode149 ...
5 years ago (2015-12-01 22:50:44 UTC) #11
Will Harris
lgtm % nit https://codereview.chromium.org/1419483002/diff/220001/sandbox/win/src/target_services.cc File sandbox/win/src/target_services.cc (right): https://codereview.chromium.org/1419483002/diff/220001/sandbox/win/src/target_services.cc#newcode65 sandbox/win/src/target_services.cc:65: typedef int(WINAPI* GetUserDefaultLocaleNameFunction)(LPWSTR lpLocaleName, nit: could ...
5 years ago (2015-12-03 06:06:40 UTC) #12
liamjm (20p)
https://codereview.chromium.org/1419483002/diff/220001/sandbox/win/src/target_services.cc File sandbox/win/src/target_services.cc (right): https://codereview.chromium.org/1419483002/diff/220001/sandbox/win/src/target_services.cc#newcode65 sandbox/win/src/target_services.cc:65: typedef int(WINAPI* GetUserDefaultLocaleNameFunction)(LPWSTR lpLocaleName, On 2015/12/03 06:06:40, Will Harris ...
5 years ago (2015-12-03 18:18:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419483002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419483002/240001
5 years ago (2015-12-03 18:28:43 UTC) #16
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years ago (2015-12-03 22:38:31 UTC) #18
commit-bot: I haz the power
5 years ago (2015-12-03 22:39:36 UTC) #20
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/39fb5127a8a3a3f6216e48fd97ce9388c1e92c61
Cr-Commit-Position: refs/heads/master@{#363076}

Powered by Google App Engine
This is Rietveld 408576698