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

Issue 5219006: Refresh policies from DM server periodically (Closed)

Created:
10 years, 1 month ago by Jakob Kummerow
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org, Mattias Nissler (ping if slow)
Visibility:
Public.

Description

Refresh policies from DM server periodically Also, this takes care of retrying when policy fetching fails. BUG=62487 TEST=unit tests: DeviceManagementPolicyProviderTest.*:DeviceTokenFetcherTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67091

Patch Set 1 #

Total comments: 24

Patch Set 2 : address comments; port to ToT #

Patch Set 3 : fix build on Win; fix behavior for unmanaged devices #

Total comments: 8

Patch Set 4 : address comments #

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -88 lines) Patch
M chrome/browser/policy/device_management_policy_cache.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_management_policy_cache.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/device_management_policy_cache_unittest.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.h View 1 2 3 4 6 chunks +42 lines, -17 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.cc View 1 2 3 4 8 chunks +99 lines, -37 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 1 3 chunks +41 lines, -5 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.h View 1 2 3 4 6 chunks +60 lines, -1 line 0 comments Download
M chrome/browser/policy/device_token_fetcher.cc View 1 2 3 2 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 4 5 chunks +22 lines, -14 lines 0 comments Download
M chrome/browser/policy/mock_device_management_backend.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/policy/mock_device_management_backend.cc View 1 5 chunks +41 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Jakob Kummerow (corp)
Please review.
10 years, 1 month ago (2010-11-22 13:06:35 UTC) #1
danno
Here you go... http://codereview.chromium.org/5219006/diff/1/chrome/browser/policy/device_management_policy_cache.cc File chrome/browser/policy/device_management_policy_cache.cc (right): http://codereview.chromium.org/5219006/diff/1/chrome/browser/policy/device_management_policy_cache.cc#newcode111 chrome/browser/policy/device_management_policy_cache.cc:111: bool new_policy_differs = !(value->Equals(policy_.get())); const bool ...
10 years, 1 month ago (2010-11-22 13:47:49 UTC) #2
Jakob Kummerow (corp)
Addressed your comments, please review again. http://codereview.chromium.org/5219006/diff/1/chrome/browser/policy/device_management_policy_cache.cc File chrome/browser/policy/device_management_policy_cache.cc (right): http://codereview.chromium.org/5219006/diff/1/chrome/browser/policy/device_management_policy_cache.cc#newcode111 chrome/browser/policy/device_management_policy_cache.cc:111: bool new_policy_differs = ...
10 years, 1 month ago (2010-11-22 16:56:08 UTC) #3
danno
getting much closer... http://codereview.chromium.org/5219006/diff/18001/chrome/browser/policy/device_management_policy_provider.cc File chrome/browser/policy/device_management_policy_provider.cc (right): http://codereview.chromium.org/5219006/diff/18001/chrome/browser/policy/device_management_policy_provider.cc#newcode137 chrome/browser/policy/device_management_policy_provider.cc:137: LOG(WARNING) << "This device is not ...
10 years, 1 month ago (2010-11-23 12:10:14 UTC) #4
Jakob Kummerow (corp)
Addressed your comments. http://codereview.chromium.org/5219006/diff/18001/chrome/browser/policy/device_management_policy_provider.cc File chrome/browser/policy/device_management_policy_provider.cc (right): http://codereview.chromium.org/5219006/diff/18001/chrome/browser/policy/device_management_policy_provider.cc#newcode137 chrome/browser/policy/device_management_policy_provider.cc:137: LOG(WARNING) << "This device is not ...
10 years, 1 month ago (2010-11-23 12:25:26 UTC) #5
Jakob Kummerow (corp)
Here you go, addressed your offline comments: • Init() method for DeviceTokenFetcher::ObserverRegistrar, allowing it to ...
10 years, 1 month ago (2010-11-23 12:51:36 UTC) #6
danno
10 years, 1 month ago (2010-11-23 12:54:00 UTC) #7
lgtm.

Powered by Google App Engine
This is Rietveld 408576698