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

Issue 4098004: Implement device management backend. (Closed)

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

Description

Implement device management backend. This adds a device management backend implementation running over HTTP. BUG=None TEST=unit tests in device_management_backend_impl_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64912

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments. #

Patch Set 3 : Pass DMToken in Auth header. #

Total comments: 2

Patch Set 4 : misc updates. #

Total comments: 10

Patch Set 5 : Address willchan's feedback and add end-to-end test. #

Total comments: 12

Patch Set 6 : Address feedback. #

Total comments: 6

Patch Set 7 : Fix nits. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1059 lines, -0 lines) Patch
A chrome/browser/policy/device_management_backend_impl.h View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
A chrome/browser/policy/device_management_backend_impl.cc View 1 2 3 4 5 6 1 chunk +415 lines, -0 lines 1 comment Download
A chrome/browser/policy/device_management_backend_impl_browsertest.cc View 5 1 chunk +141 lines, -0 lines 0 comments Download
A chrome/browser/policy/device_management_backend_impl_unittest.cc View 1 2 3 4 5 6 1 chunk +375 lines, -0 lines 0 comments Download
A chrome/browser/policy/device_management_backend_mock.h View 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Mattias Nissler (ping if slow)
Note: This depends on http://codereview.chromium.org/4121003/show danno: can you start reviewing this? It still has some ...
10 years, 1 month ago (2010-10-26 15:24:12 UTC) #1
danno
Here's a start, but I'm not done yet. I'll give you something to do :-) ...
10 years, 1 month ago (2010-10-29 13:09:43 UTC) #2
Mattias Nissler (ping if slow)
New version is up. eroman: PING (or suggest someone to review custom URLRequestContext subclass) danno: ...
10 years, 1 month ago (2010-10-29 13:46:06 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/4098004/diff/11001/12001 File chrome/browser/policy/device_management_backend_impl.cc (right): http://codereview.chromium.org/4098004/diff/11001/12001#newcode222 chrome/browser/policy/device_management_backend_impl.cc:222: virtual void OnError(DeviceManagementBackend::ErrorCode error); Why don't you define these ...
10 years, 1 month ago (2010-10-29 16:19:31 UTC) #4
Mattias Nissler (ping if slow)
Here's an updated version. willchan, can you take over for eroman who doesn't respond? I'm ...
10 years, 1 month ago (2010-11-02 13:11:19 UTC) #5
willchan no longer on Chromium
I think in the short-term this is probably fine. How are you making sure you ...
10 years, 1 month ago (2010-11-02 15:45:31 UTC) #6
Mattias Nissler (ping if slow)
A new version is up that addresses willchan's comments and add a browser test that ...
10 years, 1 month ago (2010-11-02 19:38:34 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/4098004/diff/20001/21001 File chrome/browser/policy/device_management_backend_impl.cc (right): http://codereview.chromium.org/4098004/diff/20001/21001#newcode48 chrome/browser/policy/device_management_backend_impl.cc:48: // Custom request context implementation, allowing to override user ...
10 years, 1 month ago (2010-11-03 11:04:11 UTC) #8
Mattias Nissler (ping if slow)
Addressed all of willchan's comments, new version is up. http://codereview.chromium.org/4098004/diff/20001/21001 File chrome/browser/policy/device_management_backend_impl.cc (right): http://codereview.chromium.org/4098004/diff/20001/21001#newcode48 chrome/browser/policy/device_management_backend_impl.cc:48: ...
10 years, 1 month ago (2010-11-03 12:02:44 UTC) #9
willchan no longer on Chromium
LGTM as is then. As I mentioned earlier, it's possible we will want to revisit ...
10 years, 1 month ago (2010-11-03 12:07:36 UTC) #10
danno
LGTM with nits. In addition to the ones that I found, please address the missing ...
10 years, 1 month ago (2010-11-03 12:32:57 UTC) #11
Mattias Nissler (ping if slow)
Fixed nits, will commit when the tree reopens. http://codereview.chromium.org/4098004/diff/28001/29001 File chrome/browser/policy/device_management_backend_impl.cc (right): http://codereview.chromium.org/4098004/diff/28001/29001#newcode293 chrome/browser/policy/device_management_backend_impl.cc:293: new ...
10 years, 1 month ago (2010-11-03 13:22:21 UTC) #12
eroman
10 years, 1 month ago (2010-11-08 22:38:56 UTC) #13
lgtm regarding the URLRequestContext.

You are right that ChromeURLRequestContext is tied to a profile so for this use
case seems reasonable to have a separate one.

http://codereview.chromium.org/4098004/diff/34002/39001
File chrome/browser/policy/device_management_backend_impl.cc (right):

http://codereview.chromium.org/4098004/diff/34002/39001#newcode115
chrome/browser/policy/device_management_backend_impl.cc:115:
DeviceManagementBackendRequestContextGetter::GetURLRequestContext() {
Could you add an assertion that this is currently on the IO thread?

Powered by Google App Engine
This is Rietveld 408576698