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

Issue 10832035: Switch from SignedSettings to DeviceSettingsService. (Closed)

Created:
8 years, 5 months ago by Mattias Nissler (ping if slow)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Chris Masone
Visibility:
Public.

Description

Switch from SignedSettings to DeviceSettingsService. DevicePolicyCache and DeviceSettingsProvider now go through DeviceSettingsService, which provides a unified and simpler API to Chrome OS device settings. BUG=chromium:139126 TEST=Unit tests, everything related to enterprise enrollment and device settings still works. TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154457 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154625

Patch Set 1 #

Patch Set 2 : Fix unit tests #

Patch Set 3 : Fix browser test. #

Patch Set 4 : More test fixing... #

Total comments: 12

Patch Set 5 : Rebase. #

Patch Set 6 : Cosmetics #

Patch Set 7 : once more? #

Total comments: 4

Patch Set 8 : rebase, remove blocking GetOwnershipStatus() #

Total comments: 4

Patch Set 9 : Rebase, tweak DeviceSettingsProvider. #

Patch Set 10 : Rebase, simplify migration. #

Total comments: 2

Patch Set 11 : fix test #

Patch Set 12 : Rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+923 lines, -1504 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/base_login_display_host.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/base_login_display_host.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 6 chunks +30 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/login/language_switch_menu.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_performer.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/login/login_performer.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -48 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.h View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.cc View 1 2 3 4 5 6 7 8 9 7 chunks +13 lines, -26 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -4 lines 0 comments Download
chrome/browser/chromeos/login/screen_locker.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -6 lines 0 comments Download
chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +25 lines, -47 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.h View 1 2 3 4 5 2 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.cc View 1 2 3 4 5 7 chunks +84 lines, -89 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings_provider.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings_unittest.cc View 1 2 3 4 12 chunks +23 lines, -58 lines 0 comments Download
A + chrome/browser/chromeos/settings/device_settings_cache.h View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download
A chrome/browser/chromeos/settings/device_settings_cache.cc View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/settings/device_settings_cache_unittest.cc View 1 2 3 4 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.h View 1 2 3 4 5 6 7 8 9 5 chunks +57 lines, -64 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 3 4 5 6 7 8 9 15 chunks +194 lines, -221 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +117 lines, -125 lines 0 comments Download
M chrome/browser/chromeos/settings/owner_manager.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/settings/session_manager_observer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/chromeos/settings/signed_settings_cache.h View 1 2 3 4 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/chromeos/settings/signed_settings_cache.cc View 1 2 3 4 1 chunk +0 lines, -133 lines 0 comments Download
D chrome/browser/chromeos/settings/signed_settings_cache_unittest.cc View 1 2 3 4 1 chunk +0 lines, -57 lines 0 comments Download
D chrome/browser/chromeos/settings/signed_settings_migration_helper.h View 1 2 3 4 1 chunk +0 lines, -59 lines 0 comments Download
D chrome/browser/chromeos/settings/signed_settings_migration_helper.cc View 1 2 3 4 1 chunk +0 lines, -66 lines 0 comments Download
M chrome/browser/chromeos/settings/stub_cros_settings_provider.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/stub_cros_settings_provider.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/system_settings_provider.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/system_settings_provider.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.h View 1 2 3 4 5 chunks +14 lines, -22 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 2 3 4 5 6 7 8 11 chunks +52 lines, -116 lines 0 comments Download
M chrome/browser/policy/device_policy_cache_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +121 lines, -188 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -4 lines 0 comments Download
chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -5 lines 2 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (1 generated)
Mattias Nissler (ping if slow)
This is the second part that switches existing device settings stuff over to the new ...
8 years, 5 months ago (2012-07-26 15:22:54 UTC) #1
pastarmovj
This is my initial set of comments on this one too. http://codereview.chromium.org/10832035/diff/1032/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): ...
8 years, 4 months ago (2012-07-30 13:55:02 UTC) #2
Nikita (slow)
chromeos/login lgtm
8 years, 4 months ago (2012-07-31 05:57:53 UTC) #3
Mattias Nissler (ping if slow)
I addressed all comments, ready for another review cycle. http://codereview.chromium.org/10832035/diff/1032/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): http://codereview.chromium.org/10832035/diff/1032/chrome/browser/chromeos/cros_settings.h#newcode30 chrome/browser/chromeos/cros_settings.h:30: ...
8 years, 4 months ago (2012-08-02 12:01:52 UTC) #4
pastarmovj
LGTM. Please fix my nit before you commit and consider the suggestion about preserving the ...
8 years, 4 months ago (2012-08-03 13:35:58 UTC) #5
Mattias Nissler (ping if slow)
Nikita, can you answer my inline question? I'll send another review request once the prerequisite ...
8 years, 4 months ago (2012-08-06 21:37:59 UTC) #6
Nikita (slow)
http://codereview.chromium.org/10832035/diff/6014/chrome/browser/chromeos/login/login_performer.cc File chrome/browser/chromeos/login/login_performer.cc (right): http://codereview.chromium.org/10832035/diff/6014/chrome/browser/chromeos/login/login_performer.cc#newcode263 chrome/browser/chromeos/login/login_performer.cc:263: void LoginPerformer::PerformLogin(const std::string& username, Why it is being renamed? ...
8 years, 4 months ago (2012-08-08 09:46:36 UTC) #7
Nikita (slow)
http://codereview.chromium.org/10832035/diff/6014/chrome/browser/chromeos/login/login_performer.cc File chrome/browser/chromeos/login/login_performer.cc (right): http://codereview.chromium.org/10832035/diff/6014/chrome/browser/chromeos/login/login_performer.cc#newcode263 chrome/browser/chromeos/login/login_performer.cc:263: void LoginPerformer::PerformLogin(const std::string& username, On 2012/08/08 09:46:36, Nikita Kostylev ...
8 years, 4 months ago (2012-08-08 10:28:39 UTC) #8
Nikita (slow)
lgtm http://codereview.chromium.org/10832035/diff/6014/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/10832035/diff/6014/chrome/browser/chromeos/login/existing_user_controller.cc#newcode379 chrome/browser/chromeos/login/existing_user_controller.cc:379: if (!login_performer_.get() || num_login_attempts_ <= 1) { On ...
8 years, 4 months ago (2012-08-08 10:50:02 UTC) #9
Mattias Nissler (ping if slow)
Julian, I made some changes to DeviceSettingsProvider, and the current code now passes all the ...
8 years, 4 months ago (2012-08-23 23:11:01 UTC) #10
pastarmovj
On 2012/08/23 23:11:01, Mattias Nissler wrote: > Julian, I made some changes to DeviceSettingsProvider, and ...
8 years, 4 months ago (2012-08-24 15:31:25 UTC) #11
Mattias Nissler (ping if slow)
I'm finally getting ready to submit this. Julian, can you take a look at DeviceSettingsProvider ...
8 years, 3 months ago (2012-08-30 20:17:07 UTC) #12
Nikita (slow)
http://codereview.chromium.org/10832035/diff/33001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/10832035/diff/33001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode232 chrome/browser/chromeos/login/existing_user_controller.cc:232: if (host_ != NULL) { On 2012/08/30 20:17:07, Mattias ...
8 years, 3 months ago (2012-08-31 12:45:16 UTC) #13
Nikita (slow)
lgtm
8 years, 3 months ago (2012-08-31 12:45:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10832035/37003
8 years, 3 months ago (2012-08-31 15:10:04 UTC) #15
commit-bot: I haz the power
Presubmit check for 10832035-37003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-08-31 15:10:28 UTC) #16
Mattias Nissler (ping if slow)
TBR Ben for the gyp and chrome/common changes.
8 years, 3 months ago (2012-08-31 15:22:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10832035/37003
8 years, 3 months ago (2012-08-31 15:22:59 UTC) #18
commit-bot: I haz the power
Change committed as 154457
8 years, 3 months ago (2012-08-31 17:36:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10832035/47002
8 years, 3 months ago (2012-09-01 18:20:30 UTC) #20
commit-bot: I haz the power
Change committed as 154625
8 years, 3 months ago (2012-09-01 20:47:22 UTC) #21
(unused - use chromium)
The dreaded 4-year-7-months-later code review! https://codereview.chromium.org/10832035/diff/47002/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (left): https://codereview.chromium.org/10832035/diff/47002/chrome/chrome_tests.gypi#oldcode1193 chrome/chrome_tests.gypi:1193: 'browser/chromeos/settings/signed_settings_cache_unittest.cc', This CL renamed ...
3 years, 7 months ago (2017-04-27 21:08:42 UTC) #23
Mattias Nissler (ping if slow)
3 years, 7 months ago (2017-04-28 08:48:29 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/10832035/diff/47002/chrome/chrome_tests.gypi
File chrome/chrome_tests.gypi (left):

https://codereview.chromium.org/10832035/diff/47002/chrome/chrome_tests.gypi#...
chrome/chrome_tests.gypi:1193:
'browser/chromeos/settings/signed_settings_cache_unittest.cc',
On 2017/04/27 21:08:42, (unused - use chromium) wrote:
> This CL renamed browser/chromeos/settings/signed_settings_cache_unittest.cc to
> browser/chromeos/settings/device_settings_cache_unittest.cc and removed the
old
> file from chrome_tests.gypi but didn't add the new name. The file has been
> missing from build files ever since. Do you want to try to add it to
> chrome/browser/chromeos/BUILD.gn and see what it takes to get it to compile
and
> paass?

Uh, good catch. I can take a quick look to see whether this situation can be
rescued. Fortunately the file is rather short! ;-)

Powered by Google App Engine
This is Rietveld 408576698