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

Issue 214233003: Refactorise the policy_path_parser framework (Closed)

Created:
6 years, 9 months ago by kaliamoorthi
Modified:
6 years, 8 months ago
CC:
chromium-reviews, Andrew T Wilson (Slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactorise the policy_path_parser framework This CL performs a refactorisation of the policy path parser framework. BUG=352627 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261370

Patch Set 1 : Avoids static initialization #

Total comments: 2

Patch Set 2 : Fixes the review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -195 lines) Patch
M chrome/browser/policy/policy_path_parser.h View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_path_parser.cc View 1 chunk +67 lines, -0 lines 1 comment Download
M chrome/browser/policy/policy_path_parser_linux.cc View 1 chunk +30 lines, -34 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_mac.mm View 1 2 chunks +61 lines, -68 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_unittest.cc View 2 chunks +43 lines, -7 lines 0 comments Download
M chrome/browser/policy/policy_path_parser_win.cc View 1 2 chunks +88 lines, -86 lines 0 comments Download
M chrome/policy.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
kaliamoorthi
I reduced the static initialization that happens in the new code. PTAL
6 years, 8 months ago (2014-03-31 11:32:50 UTC) #1
pastarmovj
this looks pretty good. Add the comments we discussed and consider the suggestion I have ...
6 years, 8 months ago (2014-04-01 09:17:28 UTC) #2
kaliamoorthi
PTAL https://codereview.chromium.org/214233003/diff/20001/chrome/browser/policy/policy_path_parser_win.cc File chrome/browser/policy/policy_path_parser_win.cc (right): https://codereview.chromium.org/214233003/diff/20001/chrome/browser/policy/policy_path_parser_win.cc#newcode47 chrome/browser/policy/policy_path_parser_win.cc:47: #define WRAP_GET_FORLDER_FUNCTION(FunctionName, WindowsId) \ On 2014/04/01 09:17:29, pastarmovj ...
6 years, 8 months ago (2014-04-01 13:43:17 UTC) #3
pastarmovj
lgtm
6 years, 8 months ago (2014-04-01 13:51:02 UTC) #4
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 8 months ago (2014-04-01 13:51:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/214233003/40001
6 years, 8 months ago (2014-04-01 13:51:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/214233003/40001
6 years, 8 months ago (2014-04-01 22:18:42 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 22:20:56 UTC) #8
commit-bot: I haz the power
Internal error: failed to checkout. Please try again.
6 years, 8 months ago (2014-04-01 22:20:57 UTC) #9
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 8 months ago (2014-04-02 09:14:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/214233003/40001
6 years, 8 months ago (2014-04-02 09:14:27 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 10:00:11 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=292566
6 years, 8 months ago (2014-04-02 10:00:11 UTC) #13
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 8 months ago (2014-04-02 10:50:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/214233003/40001
6 years, 8 months ago (2014-04-02 10:50:36 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 17:13:18 UTC) #16
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=60392
6 years, 8 months ago (2014-04-02 17:13:18 UTC) #17
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 8 months ago (2014-04-03 08:23:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/214233003/40001
6 years, 8 months ago (2014-04-03 08:24:51 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 11:33:40 UTC) #20
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 11:33:41 UTC) #21
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 8 months ago (2014-04-03 12:18:03 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/214233003/40001
6 years, 8 months ago (2014-04-03 12:18:18 UTC) #23
commit-bot: I haz the power
Change committed as 261370
6 years, 8 months ago (2014-04-03 12:21:08 UTC) #24
pfeldman
A revert of this CL has been created in https://codereview.chromium.org/223993002/ by pfeldman@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-03 14:35:38 UTC) #25
bungeman-skia
On 2014/04/03 12:21:08, I haz the power (commit-bot) wrote: > Change committed as 261370 This ...
6 years, 8 months ago (2014-04-03 14:35:41 UTC) #26
bungeman-skia
A revert of this CL has been created in https://codereview.chromium.org/224023002/ by bungeman@google.com. The reason for ...
6 years, 8 months ago (2014-04-03 15:00:10 UTC) #27
bungeman-skia
6 years, 8 months ago (2014-04-03 15:10:22 UTC) #28
Message was sent while issue was closed.
Looks like pfeldman and I both set off to revert around the same time, and his
made it in first. Just wanted to comment on the reason.

https://codereview.chromium.org/214233003/diff/40001/chrome/browser/policy/po...
File chrome/browser/policy/policy_path_parser.cc (right):

https://codereview.chromium.org/214233003/diff/40001/chrome/browser/policy/po...
chrome/browser/policy/policy_path_parser.cc:58: val_func_ptr =
internal::kVariableNameAndValueCallbacks[i].value_func_ptr;
These two lines appear to cause the thunk to be generated. In order to to access
these globals in PIC, the linker inserts a base pointer initializer.

Powered by Google App Engine
This is Rietveld 408576698