Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 3345002: [CHrome OS] Provides nicer abstractions around ownership API (Closed)

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

Description

[CHrome OS] Provides nicer abstractions around ownership API There are two categories of operations that can be performed on the Chrome OS owner-signed settings store: 1) doing stuff to the whitelist (adding/removing/checking) 2) Storing/Retrieving arbitrary name=value pairs Unfortunately, it is currently a limitation that only one of a each category can be in-flight at a time. I've filed an issue on me to remove that restriction. The pattern of use here is that the caller instantiates some subclass of SignedSettings by calling one of the create methods. Then, call Execute() on this object from the UI thread. It'll go off and do work (on the FILE thread and over DBus), and then call the appropriate method of the Delegate you passed in -- again, on the UI thread. BUG=chromium-os:4488 TEST=Unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58546

Patch Set 1 #

Patch Set 2 : add comments #

Total comments: 27

Patch Set 3 : Address comments per Kuan #

Total comments: 2

Patch Set 4 : fix unit test bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+689 lines, -0 lines) Patch
A chrome/browser/chromeos/login/signed_settings.h View 1 2 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/signed_settings.cc View 1 2 1 chunk +308 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/signed_settings_unittest.cc View 1 2 3 1 chunk +291 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Chris Masone
Probably going to take all day to get try runs that don't time out during ...
10 years, 3 months ago (2010-09-02 15:40:40 UTC) #1
Chris Masone
Per hallway discussion with Zel about this API not being suitable for handling bulk options/preferences: ...
10 years, 3 months ago (2010-09-03 00:41:32 UTC) #2
kuan
mostly nits, with 2 questions to help me understand usage of the API: 1) by ...
10 years, 3 months ago (2010-09-03 10:24:39 UTC) #3
Chris Masone
On Fri, Sep 3, 2010 at 3:24 AM, <[email protected]> wrote: > mostly nits, with 2 ...
10 years, 3 months ago (2010-09-03 14:41:54 UTC) #4
zel
http://codereview.chromium.org/3345002/diff/2001/3001 File chrome/browser/chromeos/login/signed_settings.cc (right): http://codereview.chromium.org/3345002/diff/2001/3001#newcode251 chrome/browser/chromeos/login/signed_settings.cc:251: success = CrosLibrary::Get()->GetLoginLibrary()->StorePropertyAsync(name_, Is LoginLibrary the best place to ...
10 years, 3 months ago (2010-09-03 16:10:35 UTC) #5
Chris Masone
http://codereview.chromium.org/3345002/diff/2001/3001 File chrome/browser/chromeos/login/signed_settings.cc (right): http://codereview.chromium.org/3345002/diff/2001/3001#newcode20 chrome/browser/chromeos/login/signed_settings.cc:20: : service_(OwnershipService::GetSharedInstance()){ On 2010/09/03 10:24:39, kuan wrote: > space ...
10 years, 3 months ago (2010-09-03 16:18:55 UTC) #6
Chris Masone
http://codereview.chromium.org/3345002/diff/2001/3001 File chrome/browser/chromeos/login/signed_settings.cc (right): http://codereview.chromium.org/3345002/diff/2001/3001#newcode251 chrome/browser/chromeos/login/signed_settings.cc:251: success = CrosLibrary::Get()->GetLoginLibrary()->StorePropertyAsync(name_, On 2010/09/03 16:10:35, zel wrote: > ...
10 years, 3 months ago (2010-09-03 16:36:05 UTC) #7
kuan
10 years, 3 months ago (2010-09-03 17:03:12 UTC) #8
well, for now, i think i can take the approach of serializing the proxy info
into one property value, so this LGTM. :)

Powered by Google App Engine
This is Rietveld 408576698