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

Issue 2119005: [Win] Implement core mechanism to honor Windows Group Policy (Closed)

Created:
10 years, 7 months ago by danno
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org, Pam (message me for reviews), use mnissler at chromium.org, markusheintz
Visibility:
Public.

Description

[Win] Implement core mechanism to honor Windows Group Policy BUG=42640 TEST=--gtest_filter=WinConfigurationPolicyProviderTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47910

Patch Set 1 #

Patch Set 2 : more unit tests and comments #

Patch Set 3 : merge with latest #

Patch Set 4 : more unit tests, comment and naming tweaks #

Patch Set 5 : adhere better to windows-specific style guide #

Total comments: 20

Patch Set 6 : re-write with registry.h and other review feedback #

Patch Set 7 : merge to latest #

Patch Set 8 : appease lint #

Total comments: 10

Patch Set 9 : review feedback #

Total comments: 4

Patch Set 10 : fix nits to get lgtm #

Patch Set 11 : merge with latest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+521 lines, -8 lines) Patch
M chrome/browser/configuration_policy_pref_store.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/configuration_policy_pref_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/configuration_policy_provider.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/configuration_policy_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/configuration_policy_provider_win.h View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/configuration_policy_provider_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +158 lines, -0 lines 0 comments Download
A chrome/browser/configuration_policy_provider_win_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +294 lines, -0 lines 0 comments Download
M chrome/browser/configuration_policy_store.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
danno
Hi Marc-Antoine, This CL is ready for review. It's almost exclusively Windows-specific code for supporting ...
10 years, 7 months ago (2010-05-19 12:14:52 UTC) #1
M-A Ruel
http://codereview.chromium.org/2119005/diff/20001/19006 File chrome/browser/configuration_policy_provider_win.cc (right): http://codereview.chromium.org/2119005/diff/20001/19006#newcode15 chrome/browser/configuration_policy_provider_win.cc:15: const TCHAR WinConfigurationPolicyProvider::kHomepageRegistryValueName[] = s/TCHAR/wchar_t/ everywhere. http://codereview.chromium.org/2119005/diff/20001/19006#newcode37 chrome/browser/configuration_policy_provider_win.cc:37: LONG ...
10 years, 7 months ago (2010-05-19 12:35:05 UTC) #2
danno
Here's a re-written version using base/registry.h and addressing the other feedback. Note that there are ...
10 years, 7 months ago (2010-05-20 12:38:04 UTC) #3
M-A Ruel
http://codereview.chromium.org/2119005/diff/33001/33006 File chrome/browser/configuration_policy_provider_win.cc (right): http://codereview.chromium.org/2119005/diff/33001/33006#newcode42 chrome/browser/configuration_policy_provider_win.cc:42: buffer.reset(new uint8[value_size]); use value_size + 2 and memset it ...
10 years, 7 months ago (2010-05-20 13:45:53 UTC) #4
danno
I have addressed all of the feedback with changes in the patch set or my ...
10 years, 7 months ago (2010-05-20 15:26:54 UTC) #5
M-A Ruel
10 years, 7 months ago (2010-05-20 15:36:38 UTC) #6
lgtm with nits.

http://codereview.chromium.org/2119005/diff/41001/22007
File chrome/browser/configuration_policy_provider_win.cc (right):

http://codereview.chromium.org/2119005/diff/41001/22007#newcode66
chrome/browser/configuration_policy_provider_win.cc:66: *result =
string16(reinterpret_cast<const wchar_t*>(buffer.get()));
Please use
result->assign(reinterpret_cast<const wchar_t*>(buffer.get()));
to not create an unneeded temporary object.

http://codereview.chromium.org/2119005/diff/41001/22009
File chrome/browser/configuration_policy_provider_win_unittest.cc (right):

http://codereview.chromium.org/2119005/diff/41001/22009#newcode133
chrome/browser/configuration_policy_provider_win_unittest.cc:133: DCHECK(result
== ERROR_SUCCESS);
Never use DCHECK in test code, it won't be executed in release...

Please use the _EQ form:
EXPECT_EQ(ERROR_SUCCESS, result);
so the value is output in the log.

http://codereview.chromium.org/2119005/diff/41001/22009#newcode134
chrome/browser/configuration_policy_provider_win_unittest.cc:134: 
empty line not needed

http://codereview.chromium.org/2119005/diff/41001/22009#newcode142
chrome/browser/configuration_policy_provider_win_unittest.cc:142: 0);
no need to use 2 lines for this function call.

Powered by Google App Engine
This is Rietveld 408576698