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

Issue 7867044: PART1: Initiated the SignedSettings refactoring. (Closed)

Created:
9 years, 3 months ago by pastarmovj
Modified:
9 years, 1 month ago
CC:
chromium-reviews, davemoore+watch_chromium.org, stevenjb, nkostylev+cc_chromium.org, brettw-cc_chromium.org, kuan
Visibility:
Public.

Description

Initiated the SignedSettings refactoring. This CL introdcues the front-end change which will enforce all clients of signed settings to go through the CrosSettings class which mimics a normal PrefService and will hide the gory details of the underlying layer. The only difference being the extra GetTrusted function which will ensure that fresh data from the policy blob has been fetched before returning the cached value. BUG=chromium-os:14054 TEST=All existing signed settings tests should still be green. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111133

Patch Set 1 #

Patch Set 2 : Finished the removal of all cached/Trusted functions from UserCrosSettingsProvider. #

Patch Set 3 : This looks more like it. #

Patch Set 4 : Clean up some debug output. #

Total comments: 22

Patch Set 5 : Addressed the comments from Denis. #

Total comments: 59

Patch Set 6 : Addressed comments and issues. #

Total comments: 32

Patch Set 7 : Made trybots happy. Added some more TODOs and documentation. General cleanup. #

Patch Set 8 : Rebased to ToT and cleaned up some tests. #

Total comments: 2

Patch Set 9 : Ckleaned up values.cc and profile_impl.cc that has creeped from the rebase back in. #

Total comments: 11

Patch Set 10 : Addressed comments from Chris and rebased to ToT to get it running on the try servers again. #

Total comments: 14

Patch Set 11 : Rebased to ToT and fixed the nits. #

Patch Set 12 : One more merging rebase no new stuff. #

Patch Set 13 : Rebased on ToT (including the patch to Proxy stuff). #

Patch Set 14 : Rebased on ToT (solved merging conflict). #

Total comments: 14

Patch Set 15 : Another round of comment addressing. #

Patch Set 16 : Final rebase to ToT before hitting the CQ. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -477 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/cros_settings.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +44 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/cros_settings_provider.h View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +35 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/login/login_performer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/login_performer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +62 lines, -73 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/user_cros_settings_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -30 lines 0 comments Download
M chrome/browser/chromeos/user_cros_settings_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +25 lines, -163 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/crashes_ui.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/flags_ui.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/about_page_handler.h View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/about_page_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +62 lines, -8 lines 0 comments Download
D chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.h View 1 2 1 chunk +0 lines, -29 lines 0 comments Download
D chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.cc View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/stats_options_handler.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_options_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_settings_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
pastarmovj
This is the first part of the refactoring. It gets rid of all the cached_xxxx ...
9 years, 3 months ago (2011-09-20 12:34:08 UTC) #1
Nikita (slow)
Adding Denis Lagno as an additional reviewer.
9 years, 3 months ago (2011-09-20 13:11:19 UTC) #2
Denis Lagno
http://codereview.chromium.org/7867044/diff/8001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/7867044/diff/8001/chrome/browser/chromeos/cros/network_library.cc#newcode27 chrome/browser/chromeos/cros/network_library.cc:27: #include "chrome/browser/chromeos/network_login_observer.h" nit: ASCII order http://codereview.chromium.org/7867044/diff/8001/chrome/browser/chromeos/cros_settings.cc File chrome/browser/chromeos/cros_settings.cc (left): ...
9 years, 3 months ago (2011-09-20 14:05:22 UTC) #3
pastarmovj
Thanks for reviewing this Denis! I addressed the comments and as a bonus changed all ...
9 years, 3 months ago (2011-09-20 17:11:52 UTC) #4
Mattias Nissler (ping if slow)
some comments :) http://codereview.chromium.org/7867044/diff/6041/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): http://codereview.chromium.org/7867044/diff/6041/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode72 chrome/browser/automation/testing_automation_provider_chromeos.cc:72: chromeos::ProxyCrosSettingsProvider settings_provider; why aren't we going ...
9 years, 3 months ago (2011-09-21 11:12:59 UTC) #5
Denis Lagno
http://codereview.chromium.org/7867044/diff/6041/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/7867044/diff/6041/chrome/browser/chromeos/login/existing_user_controller.cc#newcode245 chrome/browser/chromeos/login/existing_user_controller.cc:245: pointer_factory_.GetWeakPtr())); Are you really sure that this one still ...
9 years, 3 months ago (2011-09-22 13:54:05 UTC) #6
pastarmovj
Addressed comments. I will have one more issue to solve - users screen in settings ...
9 years, 3 months ago (2011-09-23 15:19:32 UTC) #7
Mattias Nissler (ping if slow)
another round of comments. http://codereview.chromium.org/7867044/diff/6041/chrome/browser/chromeos/cros_settings.cc File chrome/browser/chromeos/cros_settings.cc (right): http://codereview.chromium.org/7867044/diff/6041/chrome/browser/chromeos/cros_settings.cc#newcode183 chrome/browser/chromeos/cros_settings.cc:183: *out_value = CreateSettingsValue( On 2011/09/23 ...
9 years, 2 months ago (2011-09-26 17:26:37 UTC) #8
pastarmovj
PTAL. Thanks! http://codereview.chromium.org/7867044/diff/15001/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (left): http://codereview.chromium.org/7867044/diff/15001/chrome/browser/automation/testing_automation_provider_chromeos.cc#oldcode82 chrome/browser/automation/testing_automation_provider_chromeos.cc:82: if (settings_provider.Get(setting_path, &setting)) { On 2011/09/26 17:26:37, ...
9 years, 2 months ago (2011-09-29 15:15:03 UTC) #9
pastarmovj
Adding Chris to the reviewers list as discussed offline.
9 years, 2 months ago (2011-10-04 16:44:55 UTC) #10
pastarmovj
Cleaned up rebase artefacts in values.cc and profile_impl.cc. http://codereview.chromium.org/7867044/diff/29001/base/values.cc File base/values.cc (right): http://codereview.chromium.org/7867044/diff/29001/base/values.cc#newcode890 base/values.cc:890: int ...
9 years, 2 months ago (2011-10-05 09:47:16 UTC) #11
Chris Masone
http://codereview.chromium.org/7867044/diff/32001/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): http://codereview.chromium.org/7867044/diff/32001/chrome/browser/chromeos/cros_settings.h#newcode51 chrome/browser/chromeos/cros_settings.h:51: // not be retrieved. I don't think this contract ...
9 years, 2 months ago (2011-10-05 18:43:12 UTC) #12
pastarmovj
Addressed comments and polished up this commit. Please take into account the fact this this ...
9 years, 2 months ago (2011-10-13 11:23:02 UTC) #13
Mattias Nissler (ping if slow)
LGTM with nits! http://codereview.chromium.org/7867044/diff/65001/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): http://codereview.chromium.org/7867044/diff/65001/chrome/browser/chromeos/cros_settings.h#newcode48 chrome/browser/chromeos/cros_settings.h:48: nit: remove extra blank line. http://codereview.chromium.org/7867044/diff/65001/chrome/browser/chromeos/cros_settings.h#newcode53 ...
9 years, 2 months ago (2011-10-13 13:41:06 UTC) #14
Denis Lagno
LGTM http://codereview.chromium.org/7867044/diff/65001/chrome/browser/chromeos/cros_settings.cc File chrome/browser/chromeos/cros_settings.cc (right): http://codereview.chromium.org/7867044/diff/65001/chrome/browser/chromeos/cros_settings.cc#newcode171 chrome/browser/chromeos/cros_settings.cc:171: provider = GetProvider(path); join lines 170+171 or even ...
9 years, 2 months ago (2011-10-13 13:45:25 UTC) #15
Chris Masone
lgtm http://codereview.chromium.org/7867044/diff/32001/chrome/browser/chromeos/user_cros_settings_provider.cc File chrome/browser/chromeos/user_cros_settings_provider.cc (right): http://codereview.chromium.org/7867044/diff/32001/chrome/browser/chromeos/user_cros_settings_provider.cc#newcode613 chrome/browser/chromeos/user_cros_settings_provider.cc:613: cached_whitelist_update->Append(Value::CreateStringValue(email)); On 2011/10/13 11:23:02, pastarmovj wrote: > On ...
9 years, 2 months ago (2011-10-13 23:42:37 UTC) #16
pastarmovj
Addressed all comments. Any other changes are collateral damage from rebasing to ToT. http://codereview.chromium.org/7867044/diff/65001/chrome/browser/chromeos/cros_settings.cc File ...
9 years, 1 month ago (2011-10-26 15:43:19 UTC) #17
Mattias Nissler (ping if slow)
another round of nits. LGTM once you fix them. http://codereview.chromium.org/7867044/diff/90001/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): http://codereview.chromium.org/7867044/diff/90001/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode16 chrome/browser/automation/testing_automation_provider_chromeos.cc:16: ...
9 years, 1 month ago (2011-11-18 14:12:00 UTC) #18
pastarmovj
Addressed comments. Proceeding to landing verified the feel of try jobs no issues found. http://codereview.chromium.org/7867044/diff/90001/chrome/browser/automation/testing_automation_provider_chromeos.cc ...
9 years, 1 month ago (2011-11-18 15:01:38 UTC) #19
pastarmovj
@davemoore: Can you please give owner approval for chrome/browser/chromeos/cros/network_library.cc. It is only a minimal change ...
9 years, 1 month ago (2011-11-18 15:15:21 UTC) #20
DaveMoore
LGTM for network_settings
9 years, 1 month ago (2011-11-18 23:25:14 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/7867044/98001
9 years, 1 month ago (2011-11-22 10:32:03 UTC) #22
commit-bot: I haz the power
9 years, 1 month ago (2011-11-22 11:42:36 UTC) #23
Change committed as 111133

Powered by Google App Engine
This is Rietveld 408576698