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

Issue 13441008: Add parser for PReg files. (Closed)

Created:
7 years, 8 months ago by Mattias Nissler (ping if slow)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Joao da Silva
Visibility:
Public.

Description

Add parser for PReg files. These files are used on Windows to store applied GPO settings. The parser will be used to read PReg files directly to obtain Chrome policy if possible. BUG=chromium:186445 TEST=unit tests TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193437

Patch Set 1 #

Total comments: 34

Patch Set 2 : Address comments. #

Total comments: 10

Patch Set 3 : Address comments. #

Patch Set 4 : One last small fix. #

Patch Set 5 : Break out binary test file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -0 lines) Patch
A chrome/browser/policy/preg_parser_win.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/policy/preg_parser_win.cc View 1 2 3 1 chunk +302 lines, -0 lines 0 comments Download
A chrome/browser/policy/preg_parser_win_unittest.cc View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mattias Nissler (ping if slow)
Here's the first piece for reading GPO directly.
7 years, 8 months ago (2013-04-04 20:57:03 UTC) #1
pastarmovj
Almost stamped but I'd like to hear why am i wrong here : chrome/browser/policy/preg_parser_win.cc:178 :) ...
7 years, 8 months ago (2013-04-05 08:41:43 UTC) #2
Joao da Silva
Looks good but needs some fixes, see inline. The pol file is also empty, I ...
7 years, 8 months ago (2013-04-05 12:51:32 UTC) #3
Mattias Nissler (ping if slow)
Thanks for your valuable comments, new version is up for review. Anyone know how to ...
7 years, 8 months ago (2013-04-05 18:12:49 UTC) #4
Joao da Silva
lgtm after maybe fixing the case-sensitivity issue. https://codereview.chromium.org/13441008/diff/11001/chrome/browser/policy/preg_parser_win.cc File chrome/browser/policy/preg_parser_win.cc (right): https://codereview.chromium.org/13441008/diff/11001/chrome/browser/policy/preg_parser_win.cc#newcode53 chrome/browser/policy/preg_parser_win.cc:53: int result ...
7 years, 8 months ago (2013-04-08 12:31:25 UTC) #5
Joao da Silva
The registry.pol file is still empty, and that's likely the reason that the test fails ...
7 years, 8 months ago (2013-04-08 12:33:02 UTC) #6
Mattias Nissler (ping if slow)
Updated, PTAL. https://codereview.chromium.org/13441008/diff/11001/chrome/browser/policy/preg_parser_win.cc File chrome/browser/policy/preg_parser_win.cc (right): https://codereview.chromium.org/13441008/diff/11001/chrome/browser/policy/preg_parser_win.cc#newcode53 chrome/browser/policy/preg_parser_win.cc:53: int result = **cursor | (*(*cursor + ...
7 years, 8 months ago (2013-04-09 22:26:47 UTC) #7
Joao da Silva
lgtm from my side
7 years, 8 months ago (2013-04-10 08:47:23 UTC) #8
Mattias Nissler (ping if slow)
Alright, I'm going to break out the binary files and get this landed if there ...
7 years, 8 months ago (2013-04-10 13:18:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/13441008/33002
7 years, 8 months ago (2013-04-10 16:11:05 UTC) #10
commit-bot: I haz the power
Presubmit check for 13441008-33002 failed and returned exit status 1. INFO:root:Found 5 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-10 16:11:14 UTC) #11
Mattias Nissler (ping if slow)
TBR ben@chromium.org for the gyp changes.
7 years, 8 months ago (2013-04-10 16:12:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/13441008/33002
7 years, 8 months ago (2013-04-10 16:12:54 UTC) #13
Mattias Nissler (ping if slow)
TBR Ben for realz.
7 years, 8 months ago (2013-04-10 16:13:07 UTC) #14
Ben Goodger (Google)
gyp lgtm
7 years, 8 months ago (2013-04-10 16:40:35 UTC) #15
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 20:07:57 UTC) #16
Message was sent while issue was closed.
Change committed as 193437

Powered by Google App Engine
This is Rietveld 408576698