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

Issue 10832222: Added a timezone policy and pyauto tests for it. (Closed)

Created:
8 years, 4 months ago by pneubeck (no reviews)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, Nirnimesh, kkania, dyu1, anantha, robertshield, oshima+watch_chromium.org, dennis_jeffrey, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Added a timezone policy and pyauto tests for it. Relanding this CL https://chromiumcodereview.appspot.com/10827050/ after a memory leak was fixed in the master. TBR=darin@chromium.org BUG=chromium-os:27206 TEST= Test active policy: 1. Set the timezone policy to X. 2. Login, set timezone to Y (!= X) 3. Logout, check that the timezone is reset to X Test inactive policy: 1. Set the timezone policy to X. 2. Login, set timezone to Y (!= X) 3. Logout, check that the timezone is still Y Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151884

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed condition for MessageLoop. #

Total comments: 6

Patch Set 3 : Addressed comments and fixed a bug reported on linux_chromeos. #

Total comments: 2

Patch Set 4 : Changed policy description. #

Total comments: 6

Patch Set 5 : Fixed nits. #

Patch Set 6 : Rebase and update policy id. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -34 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 2 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 4 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings_names.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 5 chunks +42 lines, -16 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/proto/chrome_device_policy.proto View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/test/functional/chromeos_device_policy.py View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/test/functional/chromeos_time.py View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/test/functional/policy_test_cases.py View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/pyautolib/pyauto.py View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
pneubeck (no reviews)
Please, lgtm again. The last commit broke some tests because of some other commit which ...
8 years, 4 months ago (2012-08-09 13:32:40 UTC) #1
Joao da Silva
lgtm after fixing the BrowserPolicyConnector. https://chromiumcodereview.appspot.com/10832222/diff/1/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc (right): https://chromiumcodereview.appspot.com/10832222/diff/1/chrome/browser/policy/browser_policy_connector.cc#newcode153 chrome/browser/policy/browser_policy_connector.cc:153: if (MessageLoop::current()) { Don't ...
8 years, 4 months ago (2012-08-09 13:39:47 UTC) #2
pneubeck (no reviews)
Removed the test. http://codereview.chromium.org/10832222/diff/1/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc (right): http://codereview.chromium.org/10832222/diff/1/chrome/browser/policy/browser_policy_connector.cc#newcode153 chrome/browser/policy/browser_policy_connector.cc:153: if (MessageLoop::current()) { On 2012/08/09 13:39:47, ...
8 years, 4 months ago (2012-08-09 13:45:34 UTC) #3
pneubeck (no reviews)
jcivelli, please take a look at the tests, that I want to add, and the ...
8 years, 4 months ago (2012-08-10 07:03:39 UTC) #4
pneubeck (no reviews)
mnissler, please take a look at the changes to settings/*. Thanks.
8 years, 4 months ago (2012-08-10 07:13:12 UTC) #5
Mattias Nissler (ping if slow)
couple nits https://chromiumcodereview.appspot.com/10832222/diff/6002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/10832222/diff/6002/chrome/app/policy/policy_templates.json#newcode3167 chrome/app/policy/policy_templates.json:3167: If additionally no user ever set a ...
8 years, 4 months ago (2012-08-10 07:45:16 UTC) #6
pneubeck (no reviews)
Addressed comments and fixed a bug reported on linux_chromeos. https://chromiumcodereview.appspot.com/10832222/diff/6002/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/10832222/diff/6002/chrome/app/policy/policy_templates.json#newcode3167 chrome/app/policy/policy_templates.json:3167: ...
8 years, 4 months ago (2012-08-10 15:32:58 UTC) #7
Mattias Nissler (ping if slow)
chrome/{app,browser}/policy LGTM https://chromiumcodereview.appspot.com/10832222/diff/11003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/10832222/diff/11003/chrome/app/policy/policy_templates.json#newcode3169 chrome/app/policy/policy_templates.json:3169: The specified value is valid if it ...
8 years, 4 months ago (2012-08-13 07:49:46 UTC) #8
pneubeck (no reviews)
Fixed the policy description. https://chromiumcodereview.appspot.com/10832222/diff/11003/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/10832222/diff/11003/chrome/app/policy/policy_templates.json#newcode3169 chrome/app/policy/policy_templates.json:3169: The specified value is valid ...
8 years, 4 months ago (2012-08-13 12:26:45 UTC) #9
pneubeck (no reviews)
Nirnimesh, could you please teak a look at the changes affecting chrome/test/**. Thanks. darin already ...
8 years, 4 months ago (2012-08-14 08:23:57 UTC) #10
Nirnimesh
chrome/test/ LGTM http://codereview.chromium.org/10832222/diff/10003/chrome/test/functional/chromeos_device_policy.py File chrome/test/functional/chromeos_device_policy.py (right): http://codereview.chromium.org/10832222/diff/10003/chrome/test/functional/chromeos_device_policy.py#newcode206 chrome/test/functional/chromeos_device_policy.py:206: self.SetDevicePolicy({'timezone':self._timezones[0]}, refresh=True) nit: need space after : ...
8 years, 4 months ago (2012-08-14 18:09:37 UTC) #11
pneubeck (no reviews)
Fixed nits. http://codereview.chromium.org/10832222/diff/10003/chrome/test/functional/chromeos_device_policy.py File chrome/test/functional/chromeos_device_policy.py (right): http://codereview.chromium.org/10832222/diff/10003/chrome/test/functional/chromeos_device_policy.py#newcode206 chrome/test/functional/chromeos_device_policy.py:206: self.SetDevicePolicy({'timezone':self._timezones[0]}, refresh=True) On 2012/08/14 18:09:37, Nirnimesh wrote: ...
8 years, 4 months ago (2012-08-16 06:47:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/10832222/10004
8 years, 4 months ago (2012-08-16 09:40:38 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/app/policy/policy_templates.json: While running patch -p1 --forward --force; patching file chrome/app/policy/policy_templates.json ...
8 years, 4 months ago (2012-08-16 09:40:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/10832222/6021
8 years, 4 months ago (2012-08-16 09:48:45 UTC) #15
commit-bot: I haz the power
Presubmit check for 10832222-6021 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-16 09:48:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/10832222/6021
8 years, 4 months ago (2012-08-16 09:52:25 UTC) #17
commit-bot: I haz the power
8 years, 4 months ago (2012-08-16 13:42:39 UTC) #18
Change committed as 151884

Powered by Google App Engine
This is Rietveld 408576698