Chromium Code Reviews

Issue 5346005: Unmanaged devices should forget device id/token (Closed)

Created:
10 years ago by danno
Modified:
9 years, 7 months ago
Reviewers:
danno-g, markusheintz_, Jakob Kummerow
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Unmanaged devices should forget device id/token Device token/id should be erased when device management sever reports "not managed" from policy request. BUG=64613 TEST=DeviceManagementPolicyProviderTest.DeviceNoLongerManaged Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67600

Patch Set 1 #

Patch Set 2 : fix nit #

Total comments: 1
Unified diffs Side-by-side diffs Stats (+31 lines, -1 line)
M chrome/browser/policy/device_management_policy_provider.cc View 1 chunk +4 lines, -0 lines 0 comments
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 4 chunks +27 lines, -1 line 1 comment

Messages

Total messages: 6 (0 generated)
danno
please review
10 years ago (2010-11-29 08:24:26 UTC) #1
Jakob Kummerow
As discussed offline, calling token_fetcher_->Restart() to forget token+id leads to a small inefficiency, as the ...
10 years ago (2010-11-29 08:58:18 UTC) #2
danno
Filed bug 64614 to make sure that we don't forget about your feedback. On 2010/11/29 ...
10 years ago (2010-11-29 08:59:55 UTC) #3
markusheintz_
LGTM with nit. http://codereview.chromium.org/5346005/diff/2001/chrome/browser/policy/device_management_policy_provider_unittest.cc File chrome/browser/policy/device_management_policy_provider_unittest.cc (right): http://codereview.chromium.org/5346005/diff/2001/chrome/browser/policy/device_management_policy_provider_unittest.cc#newcode59 chrome/browser/policy/device_management_policy_provider_unittest.cc:59: FilePath GetTokenPath() const { Why was ...
10 years ago (2010-11-29 09:01:42 UTC) #4
danno-g
Problem is that this method is private on the provider, and the test cases don't ...
10 years ago (2010-11-29 09:32:39 UTC) #5
markusheintz_
10 years ago (2010-11-29 09:55:42 UTC) #6
I see. Thanks a lot for the explanation. 

On 2010/11/29 09:32:39, danno-g wrote:
> Problem is that this method is private on the provider, and the test cases
> don't have access. The test base class is already a friend, so this let's me
> avoid test-specific friend declarations, which are a real pain to maintain.
> 
> On Mon, Nov 29, 2010 at 10:01 AM, <mailto:markusheintz@chromium.org> wrote:
> 
> > LGTM with nit.
> >
> >
> >
> >
>
http://codereview.chromium.org/5346005/diff/2001/chrome/browser/policy/device...
> > File chrome/browser/policy/device_management_policy_provider_unittest.cc
> > (right):
> >
> >
> >
>
http://codereview.chromium.org/5346005/diff/2001/chrome/browser/policy/device...
> > chrome/browser/policy/device_management_policy_provider_unittest.cc:59:
> > FilePath GetTokenPath() const {
> > Why was this introduced? It looks like it is only used once in the test
> > below. Inline?
> >
> >
> > http://codereview.chromium.org/5346005/
> >

Powered by Google App Engine