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

Issue 8091002: PART2: Make SignedSettings use proper Value types instead of string all around the place. (Closed)

Created:
9 years, 2 months ago by pastarmovj
Modified:
9 years, 1 month ago
CC:
chromium-reviews, davemoore+watch_chromium.org, stevenjb, kkania, nkostylev+cc_chromium.org, Paweł Hajdan Jr., kuan
Visibility:
Public.

Description

Make SignedSettings use proper Value types instead of string all around the place. Extra: Add ListValue support to the bunch and Userlist handling through Retrieve/StorePropertyOp. BUG=chromium-os:14054 TEST=unit_tests:*Signed* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111141

Patch Set 1 #

Patch Set 2 : Rebased on ToT and made clang happy. #

Patch Set 3 : Rebased on ToT and made clang happy. #

Total comments: 38

Patch Set 4 : Addressed comments and rebased on a the current PART1 version. #

Total comments: 18

Patch Set 5 : Rebased on ToT+PART1 and addressed comments. #

Patch Set 6 : Fixed some memory leaks in tests. #

Total comments: 1

Patch Set 7 : Addressed comments and fixed an issue with user whitelist checks. #

Total comments: 12

Patch Set 8 : Rebased on ToT+Part1 and addressed comments. #

Total comments: 4

Patch Set 9 : Addressed the nits and rebased on ToT (which now has PART1 in). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -297 lines) Patch
M chrome/browser/chromeos/cros_settings.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros_settings.cc View 1 2 3 4 5 6 7 8 2 chunks +48 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros_settings_provider.h View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros_settings_provider.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/login_performer.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/mock_signed_settings_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/signed_settings.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings.cc View 1 2 3 4 5 6 7 8 18 chunks +118 lines, -68 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_helper.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_helper.cc View 1 2 3 4 5 6 7 8 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_helper_unittest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_temp_storage.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_temp_storage.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_temp_storage_unittest.cc View 1 2 3 1 chunk +16 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_unittest.cc View 1 2 3 4 5 6 7 14 chunks +50 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/user_cros_settings_provider.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/user_cros_settings_provider.cc View 1 2 3 4 5 6 7 17 chunks +62 lines, -109 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_settings_provider.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/system_settings_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
pastarmovj
The second part of the refactoring is opened for reviewing too.
9 years, 2 months ago (2011-10-04 16:41:12 UTC) #1
Denis Lagno
http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/cros_settings.h#newcode38 chrome/browser/chromeos/cros_settings.h:38: void Set(const std::string& path, const base::Value& in_value); AFAIU base::Values ...
9 years, 2 months ago (2011-10-04 17:01:50 UTC) #2
pastarmovj
http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/cros_settings.h#newcode38 chrome/browser/chromeos/cros_settings.h:38: void Set(const std::string& path, const base::Value& in_value); On 2011/10/04 ...
9 years, 2 months ago (2011-10-05 08:42:31 UTC) #3
Denis Lagno
http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/cros_settings.h File chrome/browser/chromeos/cros_settings.h (right): http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/cros_settings.h#newcode38 chrome/browser/chromeos/cros_settings.h:38: void Set(const std::string& path, const base::Value& in_value); So you ...
9 years, 2 months ago (2011-10-05 17:50:10 UTC) #4
Chris Masone
http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/login/signed_settings.cc File chrome/browser/chromeos/login/signed_settings.cc (right): http://codereview.chromium.org/8091002/diff/4001/chrome/browser/chromeos/login/signed_settings.cc#newcode651 chrome/browser/chromeos/login/signed_settings.cc:651: } else if (prop == kAccountsPrefUsers) { so, this ...
9 years, 2 months ago (2011-10-06 16:13:05 UTC) #5
Mattias Nissler (ping if slow)
Some comments. Also, I'm leaning towards voting for Value* + ownership semantics, since from what ...
9 years, 2 months ago (2011-10-07 11:02:57 UTC) #6
pastarmovj
Addressed comments and rebased on the clean up version of PART1. Again please keep in ...
9 years, 2 months ago (2011-10-13 11:25:06 UTC) #7
Denis Lagno
http://codereview.chromium.org/8091002/diff/23001/chrome/browser/chromeos/cros_settings.cc File chrome/browser/chromeos/cros_settings.cc (right): http://codereview.chromium.org/8091002/diff/23001/chrome/browser/chromeos/cros_settings.cc#newcode62 chrome/browser/chromeos/cros_settings.cc:62: Set(path, value); nit: why not pass const reference to ...
9 years, 2 months ago (2011-10-13 13:43:10 UTC) #8
Mattias Nissler (ping if slow)
Due to the issues we discussed I feel that switching all Value& parameters to Value* ...
9 years, 2 months ago (2011-10-13 14:49:52 UTC) #9
Chris Masone
Once Mattias and Denis are happy, I'm happy :-) On 2011/10/13 14:49:52, Mattias Nissler wrote: ...
9 years, 2 months ago (2011-10-13 23:47:27 UTC) #10
pastarmovj
Addressed all comments. Any other changes are collateral damage from rebasing to ToT. http://codereview.chromium.org/8091002/diff/23001/chrome/browser/chromeos/cros_settings.cc File ...
9 years, 1 month ago (2011-10-26 15:44:59 UTC) #11
Mattias Nissler (ping if slow)
Summing up our offline discussion: It seems like it'd be nicer for client code if ...
9 years, 1 month ago (2011-10-27 10:14:41 UTC) #12
pastarmovj
Addressed the comments about memory management. Didn't change the StorePropertyOp as discussed offline it makes ...
9 years, 1 month ago (2011-10-28 13:35:33 UTC) #13
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8091002/diff/44002/chrome/browser/chromeos/cros_settings.cc File chrome/browser/chromeos/cros_settings.cc (right): http://codereview.chromium.org/8091002/diff/44002/chrome/browser/chromeos/cros_settings.cc#newcode115 chrome/browser/chromeos/cros_settings.cc:115: std::string("*").append(email.substr(email.find('@')))); you call email.find twice. Create local variable? http://codereview.chromium.org/8091002/diff/44002/chrome/browser/chromeos/cros_settings.h ...
9 years, 1 month ago (2011-10-28 14:44:06 UTC) #14
pastarmovj
Addressed comments the rest is collateral damage from rebasing to ToT. Running a whole fleet ...
9 years, 1 month ago (2011-11-18 13:18:42 UTC) #15
Mattias Nissler (ping if slow)
LGTM with nits. http://codereview.chromium.org/8091002/diff/51001/chrome/browser/chromeos/login/signed_settings.h File chrome/browser/chromeos/login/signed_settings.h (right): http://codereview.chromium.org/8091002/diff/51001/chrome/browser/chromeos/login/signed_settings.h#newcode13 chrome/browser/chromeos/login/signed_settings.h:13: #include "base/values.h" forward declaration should suffice? ...
9 years, 1 month ago (2011-11-18 14:24:42 UTC) #16
pastarmovj
9 years, 1 month ago (2011-11-22 12:13:58 UTC) #17
Addressed the nits and rebased on the committed Part1. Will land once some more
bots cycle green on the first part.

http://codereview.chromium.org/8091002/diff/51001/chrome/browser/chromeos/log...
File chrome/browser/chromeos/login/signed_settings.h (right):

http://codereview.chromium.org/8091002/diff/51001/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/signed_settings.h:13: #include "base/values.h"
On 2011/11/18 14:24:42, Mattias Nissler wrote:
> forward declaration should suffice?

Done.

http://codereview.chromium.org/8091002/diff/51001/chrome/browser/chromeos/log...
File chrome/browser/chromeos/login/signed_settings_helper.h (right):

http://codereview.chromium.org/8091002/diff/51001/chrome/browser/chromeos/log...
chrome/browser/chromeos/login/signed_settings_helper.h:11: #include
"base/values.h"
On 2011/11/18 14:24:42, Mattias Nissler wrote:
> forward decl?

Done.

Powered by Google App Engine
This is Rietveld 408576698