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

Issue 10035043: Update RestoreOnStartupPolicyHandler to translate to the correct preferences (Closed)

Created:
8 years, 8 months ago by Tyler Breisacher (Chromium)
Modified:
8 years, 8 months ago
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1, Nirnimesh
Visibility:
Public.

Description

Update RestoreOnStartupPolicyHandler to translate to the correct preferences BUG=124027 TEST=pyauto:policy.PolicyTest.testStartupOptionsHomepage Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133504

Patch Set 1 #

Patch Set 2 : Use constant #

Patch Set 3 : a few nits #

Total comments: 12

Patch Set 4 : review comments #

Patch Set 5 : minor cleanup in CheckPolicySettings #

Total comments: 10

Patch Set 6 : review comments #

Patch Set 7 : typecheck the homepage value #

Total comments: 4

Patch Set 8 : qualify TYPE_STRING #

Patch Set 9 : tiny unit_test update #

Total comments: 10

Patch Set 10 : nits (+ rebase) #

Patch Set 11 : \n #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -50 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +91 lines, -28 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/prefs/session_startup_pref.cc View 1 2 3 4 5 1 chunk +3 lines, -10 lines 0 comments Download
M chrome/test/functional/policy.py View 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/test/functional/policy_test_cases.py View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Tyler Breisacher (Chromium)
As suggested by mnissler in https://chromiumcodereview.appspot.com/10049005/ -- I think if we commit this CL first ...
8 years, 8 months ago (2012-04-18 22:00:06 UTC) #1
Nirnimesh
chrome/test/functional LGTM
8 years, 8 months ago (2012-04-18 23:11:31 UTC) #2
Mattias Nissler (ping if slow)
Looks mostly good. One request: Please update the policy definition in chrome/app/policy_templates.json to reflect the ...
8 years, 8 months ago (2012-04-19 13:15:55 UTC) #3
Tyler Breisacher (Chromium)
http://codereview.chromium.org/10035043/diff/4003/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/10035043/diff/4003/chrome/browser/policy/configuration_policy_handler.cc#newcode980 chrome/browser/policy/configuration_policy_handler.cc:980: SimplePolicyHandler::ApplyPolicySettings(policies, prefs); On 2012/04/19 13:15:55, Mattias Nissler wrote: > ...
8 years, 8 months ago (2012-04-19 19:07:56 UTC) #4
Mattias Nissler (ping if slow)
LGTM (I put another comment requesting something, feel free to ignore if I'm taking too ...
8 years, 8 months ago (2012-04-20 09:20:24 UTC) #5
Tyler Breisacher (Chromium)
http://codereview.chromium.org/10035043/diff/17001/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/10035043/diff/17001/chrome/browser/policy/configuration_policy_handler.cc#newcode981 chrome/browser/policy/configuration_policy_handler.cc:981: if (!result) On 2012/04/20 09:20:24, Mattias Nissler wrote: > ...
8 years, 8 months ago (2012-04-20 18:39:43 UTC) #6
Mattias Nissler (ping if slow)
LGTM with nits (for most of which I leave the decision to you how to ...
8 years, 8 months ago (2012-04-23 09:40:46 UTC) #7
Tyler Breisacher (Chromium)
http://codereview.chromium.org/10035043/diff/33001/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/10035043/diff/33001/chrome/browser/policy/configuration_policy_handler.cc#newcode983 chrome/browser/policy/configuration_policy_handler.cc:983: if (restore_on_startup == SessionStartupPref::kPrefValueHomePage) { On 2012/04/23 09:40:46, Mattias ...
8 years, 8 months ago (2012-04-23 17:54:03 UTC) #8
csilv
lgtm http://codereview.chromium.org/10035043/diff/33001/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/10035043/diff/33001/chrome/browser/policy/configuration_policy_handler.cc#newcode994 chrome/browser/policy/configuration_policy_handler.cc:994: nit, kill this blank line
8 years, 8 months ago (2012-04-23 17:57:26 UTC) #9
Tyler Breisacher (Chromium)
http://codereview.chromium.org/10035043/diff/33001/chrome/browser/policy/configuration_policy_handler.cc File chrome/browser/policy/configuration_policy_handler.cc (right): http://codereview.chromium.org/10035043/diff/33001/chrome/browser/policy/configuration_policy_handler.cc#newcode994 chrome/browser/policy/configuration_policy_handler.cc:994: On 2012/04/23 17:57:26, csilv wrote: > nit, kill this ...
8 years, 8 months ago (2012-04-23 18:00:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbreisacher@chromium.org/10035043/42001
8 years, 8 months ago (2012-04-23 18:00:27 UTC) #11
commit-bot: I haz the power
8 years, 8 months ago (2012-04-23 20:10:40 UTC) #12
Change committed as 133504

Powered by Google App Engine
This is Rietveld 408576698