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

Issue 6821075: Chrome-side lockbox bindings (Closed)

Created:
9 years, 8 months ago by pastarmovj
Modified:
6 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Chrome to cryptohome::InstallAttrutes bindings. BUG=chrome-os:14119 TEST=Manual. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81794

Patch Set 1 #

Patch Set 2 : Now cleaned nohn CL changes and fixed some stuff. #

Patch Set 3 : Fixed some functions in the Mock class. #

Patch Set 4 : And now again only my stuff. #

Total comments: 1

Patch Set 5 : Improved the way we handle the error and fixed style. Still some debug code present. #

Patch Set 6 : ...and now again only my stuff! #

Total comments: 5

Patch Set 7 : CL RC1. #

Total comments: 2

Patch Set 8 : CL RC2 #

Patch Set 9 : Removed some dead code CL RC2 v.2 #

Total comments: 12

Patch Set 10 : Addressed comments. #

Patch Set 11 : CL RC3 #

Total comments: 9

Patch Set 12 : Removed ownership differentiation will put it back whenever needed and possibly refactored. #

Patch Set 13 : Removed empty changes. #

Total comments: 34

Patch Set 14 : Addressed comments. #

Total comments: 4

Patch Set 15 : Fixed nits. #

Patch Set 16 : Addressed Ken's nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -10 lines) Patch
M chrome/browser/chromeos/cros/cryptohome_library.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cryptohome_library.cc View 1 2 3 4 5 6 7 8 9 3 chunks +82 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/mock_cryptohome_library.h View 1 2 3 4 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +128 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
pastarmovj
Hi this is a sneak-peak preview of the binding for the loginbox. This is the ...
9 years, 8 months ago (2011-04-13 14:57:34 UTC) #1
pastarmovj
http://codereview.chromium.org/6821075/diff/6001/chrome/browser/chromeos/login/enterprise_enrollment_view.cc File chrome/browser/chromeos/login/enterprise_enrollment_view.cc (right): http://codereview.chromium.org/6821075/diff/6001/chrome/browser/chromeos/login/enterprise_enrollment_view.cc#newcode116 chrome/browser/chromeos/login/enterprise_enrollment_view.cc:116: if (chromeos::CrosLibrary::Get()->EnsureLoaded()) { This code is here only as ...
9 years, 8 months ago (2011-04-13 15:00:35 UTC) #2
pastarmovj
This is much more like what the end code is going to be. I only ...
9 years, 8 months ago (2011-04-13 21:31:57 UTC) #3
Chris Masone
the cryptohome library stuff lgtm, can't speak to the rest. On 2011/04/13 21:31:57, pastarmovj wrote: ...
9 years, 8 months ago (2011-04-14 00:07:18 UTC) #4
Mattias Nissler (ping if slow)
I guess there's some refactoring going on... :) http://codereview.chromium.org/6821075/diff/5002/chrome/browser/chromeos/login/enterprise_enrollment_view.h File chrome/browser/chromeos/login/enterprise_enrollment_view.h (right): http://codereview.chromium.org/6821075/diff/5002/chrome/browser/chromeos/login/enterprise_enrollment_view.h#newcode44 chrome/browser/chromeos/login/enterprise_enrollment_view.h:44: void ...
9 years, 8 months ago (2011-04-14 11:43:17 UTC) #5
kmixter1
Where is the code that sets the lockbox values (email address for instance)? http://codereview.chromium.org/6821075/diff/5002/chrome/browser/chromeos/cros/cryptohome_library.cc File ...
9 years, 8 months ago (2011-04-14 16:52:22 UTC) #6
pastarmovj
Please have a look at the CL. This is what I hope to land for ...
9 years, 8 months ago (2011-04-14 20:40:20 UTC) #7
kmixter1
Where is the code that handles when the enterprise-owned status in nvram does not match ...
9 years, 8 months ago (2011-04-15 02:06:51 UTC) #8
Will Drewry
A few nits and questions, but nothing blocking from me! http://codereview.chromium.org/6821075/diff/11002/chrome/browser/chromeos/login/enterprise_enrollment_view.cc File chrome/browser/chromeos/login/enterprise_enrollment_view.cc (right): http://codereview.chromium.org/6821075/diff/11002/chrome/browser/chromeos/login/enterprise_enrollment_view.cc#newcode139 ...
9 years, 8 months ago (2011-04-15 02:38:18 UTC) #9
pastarmovj
Addressed comments. http://codereview.chromium.org/6821075/diff/14001/chrome/browser/chromeos/cros/cryptohome_library.cc File chrome/browser/chromeos/cros/cryptohome_library.cc (right): http://codereview.chromium.org/6821075/diff/14001/chrome/browser/chromeos/cros/cryptohome_library.cc#newcode419 chrome/browser/chromeos/cros/cryptohome_library.cc:419: std::map<std::string, std::string> lockbox_; On 2011/04/15 02:38:19, Will ...
9 years, 8 months ago (2011-04-15 10:05:01 UTC) #10
pastarmovj
Final cleanups and refactorings. PTAL.
9 years, 8 months ago (2011-04-15 16:27:09 UTC) #11
Chris Masone
This doesn't LGTM... I don't understand why we need to separate the notions of OWNERSHIP_USER ...
9 years, 8 months ago (2011-04-15 16:59:25 UTC) #12
pastarmovj
Removed the OWNERSHIP types.
9 years, 8 months ago (2011-04-15 17:49:15 UTC) #13
Chris Masone
After the fix below, the cryptohome_library changes LGTM. Can't speak to anything else. http://codereview.chromium.org/6821075/diff/25001/chrome/browser/chromeos/login/ownership_service.cc File ...
9 years, 8 months ago (2011-04-15 17:52:29 UTC) #14
Mattias Nissler (ping if slow)
Looks pretty good for the enrollment part, mostly style nits. http://codereview.chromium.org/6821075/diff/25001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821075/diff/25001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode25 ...
9 years, 8 months ago (2011-04-15 18:17:58 UTC) #15
pastarmovj
Addressed comments from Chris and Mattias. Thanks for the reviews! http://codereview.chromium.org/6821075/diff/25001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821075/diff/25001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode25 ...
9 years, 8 months ago (2011-04-15 18:44:49 UTC) #16
Mattias Nissler (ping if slow)
LGTM http://codereview.chromium.org/6821075/diff/16021/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821075/diff/16021/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode240 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:240: // Lockbox is not ready yet, reschedule pulling. ...
9 years, 8 months ago (2011-04-15 18:48:03 UTC) #17
pastarmovj
Fixed nits will land upon trybot happyness. http://codereview.chromium.org/6821075/diff/16021/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821075/diff/16021/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode240 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:240: // Lockbox ...
9 years, 8 months ago (2011-04-15 19:19:12 UTC) #18
kmixter1
LGTM with nits (no need to address the naming convention issue now) http://codereview.chromium.org/6821075/diff/15003/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc ...
9 years, 8 months ago (2011-04-15 19:42:26 UTC) #19
pastarmovj
9 years, 8 months ago (2011-04-15 19:59:16 UTC) #20
Addressed Ken's nits.

http://codereview.chromium.org/6821075/diff/15003/chrome/browser/chromeos/log...
File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right):

http://codereview.chromium.org/6821075/diff/15003/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:24: // Init
lockbox if it has not been done until now (in debug build we might
On 2011/04/15 19:42:26, kmixter1 wrote:
> +1 on Will's comment to use common terminology throughout the system. 
> install_attrs vs nvram vs lockbox.  Finalize vs own.  I probably would have
> picked lockbox but InstallAttrs is all over cryptohomed and dbus now, so maybe
> that's the best to converge on.
> 
> In this case, the code is triggering TPM ownership which is different from
> initializing the lockbox/nvram/install_attrs (other than install_attrs
requires
> an owned tpm to be initialized).

You are right should be tpm here and i replaced lockbox with InstallAttrs
everywhere else.

http://codereview.chromium.org/6821075/diff/15003/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:234: // Lockbox is
not ready yet, reschedule pulling.
On 2011/04/15 19:42:26, kmixter1 wrote:
> do you mean polling here?

Has been fixed already.

http://codereview.chromium.org/6821075/diff/15003/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:255: std::string 
value;
On 2011/04/15 19:42:26, kmixter1 wrote:
> extra space

Done.

Powered by Google App Engine
This is Rietveld 408576698