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

Issue 4121003: Implement device token fetcher (Closed)

Created:
10 years, 1 month ago by danno
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement device token fetcher First step in mechanism for fetching cloud-based policy for CrOS. BUG=none TEST=DeviceTokenFetcher* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64388

Patch Set 1 #

Patch Set 2 : fix lint nits #

Total comments: 2

Patch Set 3 : add missing namespace termination #

Patch Set 4 : address Paweł's and readability feedback #

Total comments: 34

Patch Set 5 : address more feedback #

Total comments: 6

Patch Set 6 : address feedback #

Total comments: 11

Patch Set 7 : more feedback #

Patch Set 8 : fix trybots #

Total comments: 2

Patch Set 9 : final feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+942 lines, -3 lines) Patch
M chrome/browser/net/gaia/token_service.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/gaia/token_service.cc View 1 chunk +6 lines, -2 lines 0 comments Download
A chrome/browser/policy/device_management_backend.h View 1 2 3 4 5 1 chunk +114 lines, -0 lines 0 comments Download
A chrome/browser/policy/device_token_fetcher.h View 1 2 3 4 5 6 1 chunk +134 lines, -0 lines 0 comments Download
A chrome/browser/policy/device_token_fetcher.cc View 1 2 3 4 5 6 7 8 1 chunk +165 lines, -0 lines 0 comments Download
A chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 4 5 1 chunk +178 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_device_management_backend.h View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_device_management_backend.cc View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A chrome/browser/policy/proto/device_management_backend.proto View 1 2 3 4 5 6 7 1 chunk +165 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +58 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_constants.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
danno
Please review. Zelidrag: proto buffer build and usage, chron token service additions and usage, Mattias ...
10 years, 1 month ago (2010-10-26 09:50:55 UTC) #1
Paweł Hajdan Jr.
Drive-by with test comments. Please let me take another look before committing. http://codereview.chromium.org/4121003/diff/10002/12006 File chrome/browser/policy/device_token_fetcher_unittest.cc ...
10 years, 1 month ago (2010-10-26 09:56:38 UTC) #2
danno
Paweł: take a look at the code that I uploaded. I think it takes care ...
10 years, 1 month ago (2010-10-26 11:30:14 UTC) #3
Paweł Hajdan Jr.
Yes, that addresses the main concern. Just a few minor comments to make it even ...
10 years, 1 month ago (2010-10-26 11:44:35 UTC) #4
danno
Hi Pawel, how about this? :-) http://codereview.chromium.org/4121003/diff/42001/7033 File chrome/browser/policy/device_token_fetcher_unittest.cc (right): http://codereview.chromium.org/4121003/diff/42001/7033#newcode52 chrome/browser/policy/device_token_fetcher_unittest.cc:52: path_provider_->SetPath(temp_user_data_dir_.path()); On 2010/10/26 ...
10 years, 1 month ago (2010-10-26 13:15:27 UTC) #5
Mattias Nissler (ping if slow)
A couple of comments. I didn't look at the proto stuff in the gyp files. ...
10 years, 1 month ago (2010-10-26 13:20:05 UTC) #6
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM with two comments. Thanks! http://codereview.chromium.org/4121003/diff/45001/46006 File chrome/browser/policy/device_token_fetcher_unittest.cc (right): ...
10 years, 1 month ago (2010-10-26 13:29:53 UTC) #7
Mattias Nissler (ping if slow)
http://codereview.chromium.org/4121003/diff/45001/46003 File chrome/browser/policy/device_management_backend.h (right): http://codereview.chromium.org/4121003/diff/45001/46003#newcode39 chrome/browser/policy/device_management_backend.h:39: const em::DeviceRegisterResponse& response) = 0; Parameter should be DeviceUnregisterResponse
10 years, 1 month ago (2010-10-26 14:26:33 UTC) #8
danno
Integrated all feedback from Mattias and Paweł. http://codereview.chromium.org/4121003/diff/42001/7029 File chrome/browser/net/gaia/token_service.h (right): http://codereview.chromium.org/4121003/diff/42001/7029#newcode1 chrome/browser/net/gaia/token_service.h:1: On 2010/10/26 ...
10 years, 1 month ago (2010-10-26 15:57:39 UTC) #9
zel
Adding tim@ and nick@ instead of chron@.
10 years, 1 month ago (2010-10-26 16:55:34 UTC) #10
tim (not reviewing)
http://codereview.chromium.org/4121003/diff/63001/64005 File chrome/browser/policy/device_token_fetcher.h (right): http://codereview.chromium.org/4121003/diff/63001/64005#newcode65 chrome/browser/policy/device_token_fetcher.h:65: StoredDeviceTokenPathProvider* path_provider); remove explicit http://codereview.chromium.org/4121003/diff/63001/64005#newcode83 chrome/browser/policy/device_token_fetcher.h:83: // server. won't ...
10 years, 1 month ago (2010-10-26 17:42:30 UTC) #11
Mattias Nissler (ping if slow)
LGTM on my part. Can somebody with more protoc experience comment on the gyp changes ...
10 years, 1 month ago (2010-10-27 16:29:34 UTC) #12
danno
uploaded a new version that addresses Tim's comments. http://codereview.chromium.org/4121003/diff/63001/64005 File chrome/browser/policy/device_token_fetcher.h (right): http://codereview.chromium.org/4121003/diff/63001/64005#newcode65 chrome/browser/policy/device_token_fetcher.h:65: StoredDeviceTokenPathProvider* ...
10 years, 1 month ago (2010-10-27 16:31:26 UTC) #13
danno
latest round of changes to the .proto file plus a tweak to make try bots ...
10 years, 1 month ago (2010-10-27 20:13:51 UTC) #14
Mattias Nissler (ping if slow)
http://codereview.chromium.org/4121003/diff/37003/84004 File chrome/browser/policy/device_token_fetcher.cc (right): http://codereview.chromium.org/4121003/diff/37003/84004#newcode90 chrome/browser/policy/device_token_fetcher.cc:90: DeviceManagementBackend::ErrorCode code) { I believe the argument fits the ...
10 years, 1 month ago (2010-10-28 09:36:16 UTC) #15
tim (not reviewing)
10 years, 1 month ago (2010-10-28 21:17:04 UTC) #16
On 2010/10/28 09:36:16, Mattias Nissler wrote:
> http://codereview.chromium.org/4121003/diff/37003/84004
> File chrome/browser/policy/device_token_fetcher.cc (right):
> 
> http://codereview.chromium.org/4121003/diff/37003/84004#newcode90
> chrome/browser/policy/device_token_fetcher.cc:90:
> DeviceManagementBackend::ErrorCode code) {
> I believe the argument fits the line, so no need for line break.

LGTM. The include rules appear fine to me (no need for TODO) although I'm not
sure if there's a way to share some of the genproto rule stuff that we have in
there for sync already.  Perhaps add a TODO there and someone who knows more
about gyp/protoc (such as nick@) can comment to help you fix later.

Powered by Google App Engine
This is Rietveld 408576698