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

Issue 2481753002: Push preg_parser and registry_dict changes upstream (Closed)

Created:
4 years, 1 month ago by ljusten (tachyonic)
Modified:
4 years, 1 month ago
Reviewers:
pastarmovj
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Push preg_parser and registry_dict changes upstream preg_parser and registry_dict are used in Chromium OS by authpolicy code to fetch policy from AD servers. Right now, a custom version of the two files is checked into platform2 in Chromium OS. This CL pushes changes made to these files upstream to Chromium, in particular making them compile outside of Windows. The goal is to eventually use them in libchrome, so that only one version of the code has to be maintained and unit tests can be reused. Both files are compiled for Windows and Chrome OS, even though only the Windows version is used in Chromium. This is done to ensure the file compiles OK and won't cause an issue downstream when used in Chrome OS. The i18n UTF16 ToLower method has been replaced by an ASCII method for two reasons: - We don't need it, we always check for ASCII keys. Keys and values are actually converted to UTF8 later and compared using case-insensitive ASCII checks, so if it was a problem, it would already surface. - More importantly, using i18n would introduce a dependency in Chrome OS on the third-party library icu and we don't want to pull this in. RegistryDict::ConvertToJSON has been #ifdef'ed out in Chrome OS because it would pull in some dependencies and it is not needed right now. BUG=chromium:659645 TEST=Compiled on Linux and ran unit tests Committed: https://crrev.com/32d00fec960c4005730cdb13a51a8416340638e9 Cr-Commit-Position: refs/heads/master@{#432908}

Patch Set 1 #

Patch Set 2 : Build file fixes #

Patch Set 3 : Build fix #

Patch Set 4 : Build fix (don't #define REG* on Windows) #

Patch Set 5 : Minor formatting #

Total comments: 6

Patch Set 6 : Minor formatting fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -1302 lines) Patch
M components/policy/core/common/BUILD.gn View 1 2 3 4 5 chunks +16 lines, -9 lines 0 comments Download
M components/policy/core/common/policy_loader_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/policy/core/common/preg_parser.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/policy/core/common/preg_parser.cc View 1 2 3 4 5 9 chunks +47 lines, -20 lines 0 comments Download
A + components/policy/core/common/preg_parser_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
D components/policy/core/common/preg_parser_win.h View 1 chunk +0 lines, -44 lines 0 comments Download
D components/policy/core/common/preg_parser_win.cc View 1 chunk +0 lines, -320 lines 0 comments Download
D components/policy/core/common/preg_parser_win_unittest.cc View 1 chunk +0 lines, -121 lines 0 comments Download
A + components/policy/core/common/registry_dict.h View 5 chunks +10 lines, -8 lines 0 comments Download
A + components/policy/core/common/registry_dict.cc View 1 2 3 4 9 chunks +12 lines, -6 lines 0 comments Download
A + components/policy/core/common/registry_dict_unittest.cc View 4 chunks +4 lines, -2 lines 0 comments Download
D components/policy/core/common/registry_dict_win.h View 1 chunk +0 lines, -93 lines 0 comments Download
D components/policy/core/common/registry_dict_win.cc View 1 chunk +0 lines, -359 lines 0 comments Download
D components/policy/core/common/registry_dict_win_unittest.cc View 1 chunk +0 lines, -310 lines 0 comments Download

Messages

Total messages: 34 (27 generated)
ljusten (tachyonic)
Julian, these are changes to preg_parser and registry_dict to make them compile for Chrome OS. ...
4 years, 1 month ago (2016-11-09 12:13:30 UTC) #23
pastarmovj
https://codereview.chromium.org/2481753002/diff/80001/components/policy/core/common/preg_parser.cc File components/policy/core/common/preg_parser.cc (right): https://codereview.chromium.org/2481753002/diff/80001/components/policy/core/common/preg_parser.cc#newcode216 components/policy/core/common/preg_parser.cc:216: if (action_trigger == kActionTriggerDeleteValues) { please revert. https://codereview.chromium.org/2481753002/diff/80001/components/policy/core/common/preg_parser.cc#newcode229 components/policy/core/common/preg_parser.cc:229: ...
4 years, 1 month ago (2016-11-09 12:26:06 UTC) #24
ljusten (tachyonic)
https://codereview.chromium.org/2481753002/diff/80001/components/policy/core/common/preg_parser.cc File components/policy/core/common/preg_parser.cc (right): https://codereview.chromium.org/2481753002/diff/80001/components/policy/core/common/preg_parser.cc#newcode216 components/policy/core/common/preg_parser.cc:216: if (action_trigger == kActionTriggerDeleteValues) { On 2016/11/09 12:26:06, pastarmovj ...
4 years, 1 month ago (2016-11-09 15:09:56 UTC) #27
pastarmovj
lgtm
4 years, 1 month ago (2016-11-17 15:09:17 UTC) #28
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/2481753002/100001
4 years, 1 month ago (2016-11-17 15:15:25 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-17 17:55:30 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 18:09:06 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/32d00fec960c4005730cdb13a51a8416340638e9
Cr-Commit-Position: refs/heads/master@{#432908}

Powered by Google App Engine
This is Rietveld 408576698