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

Issue 3141031: [Chrome OS] Wire up ownership API from libcros (Closed)

Created:
10 years, 4 months ago by Chris Masone
Modified:
9 years, 7 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

[Chrome OS] Wire up ownership API from libcros I added an asynchronous API to libcros for setting the Owner's key on Chrome OS. This CL wires that out through LoginLibrary and also refactors the OwnerManager class into the OwnershipService, a Singleton that will provide access to the entire Ownership API -- which includes methods for whitelisting users and signed preferences. The OwnerManager class is now just there to manage the Owner's key and operations with that key. A consumer of this API can call methods of OwnershipService, which will post tasks to run methods from OwnerManager (on the FILE thread if appropriate). The OwnerManager will, in turn, call methods of LoginLibrary to perform owner key operations. Since these calls to LoginLibrary are asyncrhonous, OwnerManager implements LoginLibrary::Delegate and passes |this|, so that LoginLibrary can call back to the OwnerManager when asynchronous operations are completed. BUG=chromium-os:4488 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57269

Patch Set 1 #

Patch Set 2 : Remove dead code, fix browser_tests compile #

Patch Set 3 : Header guard #

Patch Set 4 : remove reference to dead header #

Total comments: 6

Patch Set 5 : phajdan comments #

Total comments: 8

Patch Set 6 : address davemoore comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+771 lines, -321 lines) Patch
M chrome/browser/chromeos/cros/login_library.h View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/login_library.cc View 1 2 3 3 chunks +61 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros/mock_login_library.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/login/mock_owner_key_utils.h View 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/owner_key_utils.h View 5 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/owner_key_utils.cc View 5 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/owner_key_utils_unittest.cc View 1 2 3 4 5 3 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/owner_manager.h View 1 2 3 4 5 6 chunks +8 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/login/owner_manager.cc View 3 chunks +15 lines, -65 lines 0 comments Download
A chrome/browser/chromeos/login/owner_manager_unittest.h View 1 2 3 4 1 chunk +98 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/owner_manager_unittest.cc View 1 2 3 4 5 9 chunks +86 lines, -190 lines 0 comments Download
A chrome/browser/chromeos/login/ownership_service.h View 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/ownership_service.cc View 1 chunk +94 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/ownership_service_unittest.cc View 1 2 3 4 1 chunk +200 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 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Chris Masone
I know it's a hefty change, but I tried to break it up and couldn't.
10 years, 4 months ago (2010-08-22 07:42:02 UTC) #1
Paweł Hajdan Jr.
Drive-by with test comment. Please do not commit without my explicit "LGTM". http://codereview.chromium.org/3141031/diff/8001/9011 File chrome/browser/chromeos/login/owner_manager_unittest.h ...
10 years, 4 months ago (2010-08-23 17:35:26 UTC) #2
Chris Masone
http://codereview.chromium.org/3141031/diff/8001/9011 File chrome/browser/chromeos/login/owner_manager_unittest.h (right): http://codereview.chromium.org/3141031/diff/8001/9011#newcode27 chrome/browser/chromeos/login/owner_manager_unittest.h:27: explicit MockKeyLoadObserver() On 2010/08/23 17:35:26, Paweł Hajdan Jr. wrote: ...
10 years, 4 months ago (2010-08-23 17:43:21 UTC) #3
DaveMoore
http://codereview.chromium.org/3141031/diff/13001/14007 File chrome/browser/chromeos/login/owner_key_utils_unittest.cc (right): http://codereview.chromium.org/3141031/diff/13001/14007#newcode23 chrome/browser/chromeos/login/owner_key_utils_unittest.cc:23: #include "base/scoped_ptr.h" nit: I think you can get rid ...
10 years, 4 months ago (2010-08-24 15:22:18 UTC) #4
Chris Masone
http://codereview.chromium.org/3141031/diff/13001/14007 File chrome/browser/chromeos/login/owner_key_utils_unittest.cc (right): http://codereview.chromium.org/3141031/diff/13001/14007#newcode23 chrome/browser/chromeos/login/owner_key_utils_unittest.cc:23: #include "base/scoped_ptr.h" On 2010/08/24 15:22:18, davemoore wrote: > nit: ...
10 years, 4 months ago (2010-08-24 15:43:32 UTC) #5
Paweł Hajdan Jr.
Chris, could you upload the updated CL?
10 years, 4 months ago (2010-08-24 16:12:58 UTC) #6
Chris Masone
On 2010/08/24 16:12:58, Paweł Hajdan Jr. wrote: > Chris, could you upload the updated CL? ...
10 years, 4 months ago (2010-08-24 16:24:31 UTC) #7
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM.
10 years, 4 months ago (2010-08-24 16:26:32 UTC) #8
DaveMoore
10 years, 4 months ago (2010-08-24 21:33:34 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698