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

Issue 5331008: Persist 'this device is not managed' information (Closed)

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

Description

Persist 'this device is not managed' information This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check). It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never). BUG=64314 TEST=unit tests: DeviceManagementPolicyProviderTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67530 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67535

Patch Set 1 #

Total comments: 18

Patch Set 2 : move 'unmanaged' timestamp into DMPCache's file; introduce private DMPProvider constructor #

Total comments: 17

Patch Set 3 : address comments #

Patch Set 4 : port to ToT/5198006-ps14 #

Total comments: 12

Patch Set 5 : fix whitespace; remove #IFDEFs #

Patch Set 6 : rebased against trunk (instead of CL 5198006) #

Patch Set 7 : fix build on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -82 lines) Patch
M chrome/browser/policy/device_management_policy_cache.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_policy_cache.cc View 1 2 3 4 7 chunks +39 lines, -14 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.h View 1 2 3 4 5 5 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.cc View 1 2 3 4 5 6 9 chunks +118 lines, -31 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 1 2 3 4 5 9 chunks +62 lines, -21 lines 0 comments Download
M chrome/browser/policy/proto/device_management_local.proto View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/notification_type.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Jakob Kummerow
Currently this CL is based on CL 5198006 patch set 9; I will rebase as ...
10 years ago (2010-11-25 14:03:09 UTC) #1
Mattias Nissler (ping if slow)
I'm still thinking that creating another file is not the right answer, but I won't ...
10 years ago (2010-11-25 16:12:36 UTC) #2
Jakob Kummerow
On 2010/11/25 16:12:36, Mattias Nissler wrote: > I'm still thinking that creating another file is ...
10 years ago (2010-11-25 16:28:45 UTC) #3
Mattias Nissler (ping if slow)
On 2010/11/25 16:28:45, jkummerow wrote: > On 2010/11/25 16:12:36, Mattias Nissler wrote: > > I'm ...
10 years ago (2010-11-25 16:34:49 UTC) #4
danno
drive by review.... vroooom! http://codereview.chromium.org/5331008/diff/1/chrome/browser/policy/device_management_policy_provider.cc File chrome/browser/policy/device_management_policy_provider.cc (right): http://codereview.chromium.org/5331008/diff/1/chrome/browser/policy/device_management_policy_provider.cc#newcode37 chrome/browser/policy/device_management_policy_provider.cc:37: const char* kUnmanagedDeviceMarkerFilename = "UnmanagedDevice"; ...
10 years ago (2010-11-25 16:35:01 UTC) #5
Jakob Kummerow
Quick answers to some of Danno's comments. Due to popular demand, I'll give embedding the ...
10 years ago (2010-11-25 16:54:24 UTC) #6
markusheintz_
http://codereview.chromium.org/5331008/diff/1/chrome/browser/policy/device_management_policy_provider.h File chrome/browser/policy/device_management_policy_provider.h (right): http://codereview.chromium.org/5331008/diff/1/chrome/browser/policy/device_management_policy_provider.h#newcode60 chrome/browser/policy/device_management_policy_provider.h:60: // for the first attempt to fetch policies to ...
10 years ago (2010-11-25 17:49:44 UTC) #7
Jakob Kummerow
Major restructuring: • No standalone "UnmanagedDevice" file any more, instead the cache stores this information. ...
10 years ago (2010-11-26 09:17:23 UTC) #8
Mattias Nissler (ping if slow)
Looks much butter, but I'm not happy enough yet! http://codereview.chromium.org/5331008/diff/10001/chrome/browser/policy/device_management_policy_cache.cc File chrome/browser/policy/device_management_policy_cache.cc (right): http://codereview.chromium.org/5331008/diff/10001/chrome/browser/policy/device_management_policy_cache.cc#newcode155 chrome/browser/policy/device_management_policy_cache.cc:155: ...
10 years ago (2010-11-26 10:37:45 UTC) #9
danno
LGTM. http://codereview.chromium.org/5331008/diff/10001/chrome/browser/policy/device_management_policy_provider.cc File chrome/browser/policy/device_management_policy_provider.cc (right): http://codereview.chromium.org/5331008/diff/10001/chrome/browser/policy/device_management_policy_provider.cc#newcode332 chrome/browser/policy/device_management_policy_provider.cc:332: return waiting_for_initial_policies_; I almost gave the same feedback ...
10 years ago (2010-11-26 10:48:36 UTC) #10
Jakob Kummerow
Mattias: more to your taste? http://codereview.chromium.org/5331008/diff/10001/chrome/browser/policy/device_management_policy_cache.cc File chrome/browser/policy/device_management_policy_cache.cc (right): http://codereview.chromium.org/5331008/diff/10001/chrome/browser/policy/device_management_policy_cache.cc#newcode155 chrome/browser/policy/device_management_policy_cache.cc:155: (is_device_unmanaged ? NULL On ...
10 years ago (2010-11-26 11:07:42 UTC) #11
Mattias Nissler (ping if slow)
No more complaints :) LGTM.
10 years ago (2010-11-26 14:01:40 UTC) #12
markusheintz_
LGTM
10 years ago (2010-11-26 14:04:27 UTC) #13
Mattias Nissler (ping if slow)
fixup all style violations and you're good to go! http://codereview.chromium.org/5331008/diff/25001/chrome/browser/policy/device_management_policy_cache.cc File chrome/browser/policy/device_management_policy_cache.cc (right): http://codereview.chromium.org/5331008/diff/25001/chrome/browser/policy/device_management_policy_cache.cc#newcode30 chrome/browser/policy/device_management_policy_cache.cc:30: ...
10 years ago (2010-11-26 15:07:30 UTC) #14
Jakob Kummerow
Whitespace fixed. As discussed offline, I also removed the "#ifdef defined(OS_CHROMEOS)" checks, so that all ...
10 years ago (2010-11-26 16:04:02 UTC) #15
markusheintz_
still LGTM
10 years ago (2010-11-26 16:17:02 UTC) #16
Jakob Kummerow
I had to revert this because it didn't compile on Windows. I fixed that, the ...
10 years ago (2010-11-29 15:10:23 UTC) #17
danno
10 years ago (2010-11-29 15:17:07 UTC) #18
LGTM (pending bots) :-)

Powered by Google App Engine
This is Rietveld 408576698