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

Issue 10828032: Add DeviceSettingsService. (Closed)

Created:
8 years, 5 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add DeviceSettingsService. DeviceSettingsService consolidates Chrome OS device settings access, keeping an authoratitive copy of device settings in memory and providing a simpler API to read and write settings. The intention is to make both DeviceSettingsProvider and DevicePolicyCache go through the new interface to remove duplication. BUG=chromium:139126 TEST=Unit tests, new code is not used yet. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154100

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updates for tests. #

Patch Set 3 : Oops. #

Total comments: 50

Patch Set 4 : Address review comments. #

Patch Set 5 : Rebase, move to chrome/browser/chromeos/settings. #

Total comments: 26

Patch Set 6 : Address comments, rebase. #

Patch Set 7 : Add unit tests for SessionManagerOperation and subclasses. #

Patch Set 8 : Rebase, adjust some comments, remove stray file. #

Total comments: 2

Patch Set 9 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2338 lines, -37 lines) Patch
A chrome/browser/chromeos/settings/device_settings_service.h View 1 2 3 4 5 1 chunk +235 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/device_settings_service.cc View 1 2 3 4 5 6 1 chunk +272 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/device_settings_service_unittest.cc View 1 2 3 4 5 6 1 chunk +378 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 2 3 4 5 6 1 chunk +119 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/mock_owner_key_util.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/mock_owner_key_util.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/owner_key_util.h View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/owner_key_util.cc View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/owner_key_util_unittest.cc View 1 2 3 4 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/session_manager_operation.h View 1 2 3 4 5 1 chunk +200 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/session_manager_operation.cc View 1 2 3 4 5 6 1 chunk +301 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/settings/session_manager_operation_unittest.cc View 1 2 3 4 5 6 1 chunk +286 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_validator.h View 1 2 3 4 5 6 5 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/policy/cloud_policy_validator.cc View 1 2 3 4 5 6 8 chunks +31 lines, -19 lines 0 comments Download
M chrome/browser/policy/cloud_policy_validator_unittest.cc View 1 2 3 4 5 6 5 chunks +29 lines, -5 lines 0 comments Download
M chrome/browser/policy/policy_builder.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_base.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Mattias Nissler (ping if slow)
I meant to clean up the low-level device settings for a long time, and now ...
8 years, 5 months ago (2012-07-26 15:21:16 UTC) #1
pastarmovj
First batch of comments :) http://codereview.chromium.org/10828032/diff/2002/chrome/browser/chromeos/login/device_settings_service.cc File chrome/browser/chromeos/login/device_settings_service.cc (right): http://codereview.chromium.org/10828032/diff/2002/chrome/browser/chromeos/login/device_settings_service.cc#newcode210 chrome/browser/chromeos/login/device_settings_service.cc:210: pending_operations_.front()->RestartLoad(force_key_load); What if the ...
8 years, 4 months ago (2012-07-30 12:19:19 UTC) #2
Nikita (slow)
It feels like this should be placed somewhere like src/chromeos/settings
8 years, 4 months ago (2012-07-31 05:44:11 UTC) #3
Nikita (slow)
On 2012/07/31 05:44:11, Nikita Kostylev wrote: > It feels like this should be placed somewhere ...
8 years, 4 months ago (2012-07-31 05:58:29 UTC) #4
Mattias Nissler (ping if slow)
Here's a new version that addresses Julian's comments. Nikita's suggestion to move all device settings ...
8 years, 4 months ago (2012-07-31 13:02:15 UTC) #5
Mattias Nissler (ping if slow)
Ok, this is no rebased on top of http://codereview.chromium.org/10824112/, which moves the device settings stuff ...
8 years, 4 months ago (2012-07-31 17:28:00 UTC) #6
pastarmovj
LGTM http://codereview.chromium.org/10828032/diff/2002/chrome/browser/chromeos/login/device_settings_service.h File chrome/browser/chromeos/login/device_settings_service.h (right): http://codereview.chromium.org/10828032/diff/2002/chrome/browser/chromeos/login/device_settings_service.h#newcode114 chrome/browser/chromeos/login/device_settings_service.h:114: DeviceSettingsService(); On 2012/07/31 13:02:15, Mattias Nissler wrote: > ...
8 years, 4 months ago (2012-08-01 08:46:51 UTC) #7
Chris Masone
http://codereview.chromium.org/10828032/diff/1/chrome/browser/chromeos/login/owner_key_util.cc File chrome/browser/chromeos/login/owner_key_util.cc (right): http://codereview.chromium.org/10828032/diff/1/chrome/browser/chromeos/login/owner_key_util.cc#newcode83 chrome/browser/chromeos/login/owner_key_util.cc:83: if (to_export.size() > static_cast<uint>(INT_MAX)) { numeric_limits<int>::max(), right? http://codereview.chromium.org/10828032/diff/15003/chrome/browser/chromeos/settings/device_settings_service.cc File ...
8 years, 4 months ago (2012-08-03 16:28:25 UTC) #8
Mattias Nissler (ping if slow)
Addressed/commented all of Chris' input, ready for another round. http://codereview.chromium.org/10828032/diff/1/chrome/browser/chromeos/login/owner_key_util.cc File chrome/browser/chromeos/login/owner_key_util.cc (right): http://codereview.chromium.org/10828032/diff/1/chrome/browser/chromeos/login/owner_key_util.cc#newcode83 chrome/browser/chromeos/login/owner_key_util.cc:83: ...
8 years, 4 months ago (2012-08-06 21:28:14 UTC) #9
Chris Masone
http://codereview.chromium.org/10828032/diff/15003/chrome/browser/chromeos/settings/session_manager_operation.cc File chrome/browser/chromeos/settings/session_manager_operation.cc (right): http://codereview.chromium.org/10828032/diff/15003/chrome/browser/chromeos/settings/session_manager_operation.cc#newcode29 chrome/browser/chromeos/settings/session_manager_operation.cc:29: SessionManagerOperation::SessionManagerOperation(const Callback& callback) On 2012/08/06 21:28:14, Mattias Nissler wrote: ...
8 years, 4 months ago (2012-08-07 20:20:03 UTC) #10
Mattias Nissler (ping if slow)
Finally got around to add unit tests for SessionManagerOperation. Chris, can you take another look ...
8 years, 4 months ago (2012-08-17 13:22:42 UTC) #11
Chris Masone
lgtm
8 years, 4 months ago (2012-08-17 18:21:34 UTC) #12
Mattias Nissler (ping if slow)
I'm finally getting ready to submit this. Nico, can you do an OWNERS review for ...
8 years, 4 months ago (2012-08-23 23:02:15 UTC) #13
Nico
I'm about to head out until monday, and this looks like something that can't be ...
8 years, 4 months ago (2012-08-23 23:18:18 UTC) #14
Mattias Nissler (ping if slow)
Fair, adding Ben :)
8 years, 4 months ago (2012-08-23 23:21:18 UTC) #15
Mattias Nissler (ping if slow)
On 2012/08/23 23:21:18, Mattias Nissler wrote: > Fair, adding Ben :) Oh, context: I need ...
8 years, 4 months ago (2012-08-23 23:21:52 UTC) #16
Ben Goodger (Google)
gyp lgtm http://codereview.chromium.org/10828032/diff/25001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10828032/diff/25001/chrome/common/chrome_notification_types.h#newcode1077 chrome/common/chrome_notification_types.h:1077: NOTIFICATION_OWNERSHIP_STATUS_CHANGED, General comment for whoever works on ...
8 years, 3 months ago (2012-08-27 15:44:09 UTC) #17
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10828032/diff/25001/chrome/common/chrome_notification_types.h File chrome/common/chrome_notification_types.h (right): http://codereview.chromium.org/10828032/diff/25001/chrome/common/chrome_notification_types.h#newcode1077 chrome/common/chrome_notification_types.h:1077: NOTIFICATION_OWNERSHIP_STATUS_CHANGED, On 2012/08/27 15:44:09, Ben Goodger (Google) wrote: > ...
8 years, 3 months ago (2012-08-27 16:23:46 UTC) #18
Mattias Nissler (ping if slow)
Ben, Nico, OK to land? Ben mentioned the magic 4 letters but I'm not sure ...
8 years, 3 months ago (2012-08-28 12:34:47 UTC) #19
Nico
lgtm
8 years, 3 months ago (2012-08-28 15:50:52 UTC) #20
Nico
(is there a tracking bug for getting rid of singleton soup in cros land?)
8 years, 3 months ago (2012-08-28 15:51:40 UTC) #21
Ben Goodger (Google)
you can tbr gyp changes like this to me lgtm
8 years, 3 months ago (2012-08-28 16:27:57 UTC) #22
Mattias Nissler (ping if slow)
Thanks Ben and Nico. FWIW, I filed a bug about the singleton soup: https://code.google.com/p/chromium/issues/detail?id=145494
8 years, 3 months ago (2012-08-29 16:17:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10828032/41001
8 years, 3 months ago (2012-08-29 16:17:51 UTC) #24
commit-bot: I haz the power
Try job failure for 10828032-41001 (retry) (retry) on win_rel for step "browser_tests". It's a second ...
8 years, 3 months ago (2012-08-29 20:34:44 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10828032/41001
8 years, 3 months ago (2012-08-29 22:07:10 UTC) #26
commit-bot: I haz the power
Try job failure for 10828032-41001 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 3 months ago (2012-08-30 01:01:06 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10828032/41001
8 years, 3 months ago (2012-08-30 07:13:58 UTC) #28
commit-bot: I haz the power
8 years, 3 months ago (2012-08-30 09:03:49 UTC) #29
Change committed as 154100

Powered by Google App Engine
This is Rietveld 408576698