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

Issue 403323004: C++ readability CL. (Closed)

Created:
6 years, 5 months ago by vasilii
Modified:
6 years, 3 months ago
Reviewers:
Ilya Sherman, manthd
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist_chromium.org, Garrett Casto, Ilya Sherman, Nicolas Zea
Project:
chromium
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 71

Patch Set 2 : Addressed comments in PasswordSyncableService #

Total comments: 62

Patch Set 3 : GMock #

Total comments: 63

Patch Set 4 : more comments #

Total comments: 14

Patch Set 5 : remove PasswordsEqual #

Total comments: 12

Patch Set 6 : remove NotifyLoginsChanged #

Patch Set 7 : fix lint errors #

Patch Set 8 : Rebase on trunk #

Patch Set 9 : Work around stupid compilers #

Total comments: 69

Patch Set 10 : addressed Ilya's comments #

Total comments: 4

Patch Set 11 : addressed comments on comments #

Total comments: 2

Patch Set 12 : Final comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -699 lines) Patch
M components/password_manager/core/browser/mock_password_store.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -41 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +177 lines, -216 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +246 lines, -442 lines 0 comments Download

Messages

Total messages: 36 (1 generated)
vasilii
Hi Dan, please review this readabilty CL. Thanks,
6 years, 4 months ago (2014-08-01 08:38:05 UTC) #1
manthd
Thanks for participating in the readability process. It looks like you're already doing a good ...
6 years, 4 months ago (2014-08-07 05:26:54 UTC) #2
Ilya Sherman
Perspectives of a Chromium reviewer; take with a grain of salt :) Thanks for the ...
6 years, 4 months ago (2014-08-07 07:36:14 UTC) #3
vasilii
I addressed almost all of them in https://codereview.chromium.org/447333002. Except those which Ilya invalidated above. https://codereview.chromium.org/403323004/diff/1/components/password_manager/core/browser/password_syncable_service.cc ...
6 years, 4 months ago (2014-08-07 18:16:22 UTC) #4
vasilii
I uploaded everything here.
6 years, 4 months ago (2014-08-08 17:10:10 UTC) #5
manthd
I'm afraid that your tests are an enormous mess that I can't really review yet. ...
6 years, 4 months ago (2014-08-14 06:55:48 UTC) #6
Ilya Sherman
https://codereview.chromium.org/403323004/diff/1/components/password_manager/core/browser/password_syncable_service.cc File components/password_manager/core/browser/password_syncable_service.cc (right): https://codereview.chromium.org/403323004/diff/1/components/password_manager/core/browser/password_syncable_service.cc#newcode89 components/password_manager/core/browser/password_syncable_service.cc:89: syncer::SyncChange::SyncChangeType GetSyncChangeType( On 2014/08/14 06:55:46, manthd wrote: > On ...
6 years, 4 months ago (2014-08-14 07:19:50 UTC) #7
manthd
https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode43 components/password_manager/core/browser/password_syncable_service_unittest.cc:43: void PasswordsEqual(const sync_pb::PasswordSpecificsData& expected_password, On 2014/08/14 07:19:50, Ilya Sherman ...
6 years, 4 months ago (2014-08-15 04:54:28 UTC) #8
vasilii
I removed PasswordStoreDataVerifier. However, I don't see that the tests became more readable. https://codereview.chromium.org/403323004/diff/1/components/password_manager/core/browser/password_syncable_service.cc File ...
6 years, 4 months ago (2014-08-19 15:55:44 UTC) #9
manthd
Thanks for the changes so far. I understand the fact that my pushback on Chromium ...
6 years, 4 months ago (2014-08-20 03:30:48 UTC) #10
vasilii
https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode43 components/password_manager/core/browser/password_syncable_service_unittest.cc:43: void PasswordsEqual(const sync_pb::PasswordSpecificsData& expected_password, On 2014/08/20 03:30:46, manthd wrote: ...
6 years, 4 months ago (2014-08-20 20:11:42 UTC) #11
Ilya Sherman
https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode206 components/password_manager/core/browser/password_syncable_service_unittest.cc:206: forms->insert(forms->end(), append_forms_.begin(), append_forms_.end()); On 2014/08/20 20:11:41, vasilii wrote: > ...
6 years, 4 months ago (2014-08-20 20:26:34 UTC) #12
vasilii
https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode206 components/password_manager/core/browser/password_syncable_service_unittest.cc:206: forms->insert(forms->end(), append_forms_.begin(), append_forms_.end()); On 2014/08/20 20:26:34, Ilya Sherman wrote: ...
6 years, 4 months ago (2014-08-21 08:06:21 UTC) #13
Ilya Sherman
https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode206 components/password_manager/core/browser/password_syncable_service_unittest.cc:206: forms->insert(forms->end(), append_forms_.begin(), append_forms_.end()); On 2014/08/21 08:06:21, vasilii wrote: > ...
6 years, 4 months ago (2014-08-22 03:50:33 UTC) #14
manthd
I was going to give you another pass on the test file, but I got ...
6 years, 4 months ago (2014-08-22 05:49:48 UTC) #15
vasilii
https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service.cc File components/password_manager/core/browser/password_syncable_service.cc (right): https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service.cc#newcode252 components/password_manager/core/browser/password_syncable_service.cc:252: ::password_manager::MakePasswordSyncTag(it->form()), On 2014/08/22 05:49:47, manthd wrote: > On 2014/08/20 ...
6 years, 4 months ago (2014-08-22 12:27:16 UTC) #16
manthd
I have on last substantive suggestion, and one question. Other than that, this is looking ...
6 years, 3 months ago (2014-08-26 01:46:03 UTC) #17
Ilya Sherman
https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode43 components/password_manager/core/browser/password_syncable_service_unittest.cc:43: void PasswordsEqual(const sync_pb::PasswordSpecificsData& expected_password, On 2014/08/26 01:46:03, manthd wrote: ...
6 years, 3 months ago (2014-08-26 01:52:08 UTC) #18
manthd
On 2014/08/26 01:52:08, Ilya Sherman wrote: > https://codereview.chromium.org/403323004/diff/20001/components/password_manager/core/browser/password_syncable_service_unittest.cc > File > components/password_manager/core/browser/password_syncable_service_unittest.cc > (right): > ...
6 years, 3 months ago (2014-08-26 02:10:18 UTC) #19
vasilii
https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/40001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode74 components/password_manager/core/browser/password_syncable_service_unittest.cc:74: PasswordsEqual( On 2014/08/26 01:46:03, manthd wrote: > On 2014/08/20 ...
6 years, 3 months ago (2014-08-26 11:45:47 UTC) #20
manthd
lgtm LGTM. Feel free to submit when Ilya gives you the OK. I'll then mark ...
6 years, 3 months ago (2014-08-26 19:48:55 UTC) #21
vasilii
Thanks! Ilya, please review.
6 years, 3 months ago (2014-08-27 12:12:34 UTC) #22
Ilya Sherman
IMO most Chromium developers would balk at this heavy use of Gmock. However, I agree ...
6 years, 3 months ago (2014-08-28 06:59:39 UTC) #23
vasilii
https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.cc File components/password_manager/core/browser/password_syncable_service.cc (right): https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.cc#newcode22 components/password_manager/core/browser/password_syncable_service.cc:22: // memberwise. On 2014/08/28 06:59:37, Ilya Sherman wrote: > ...
6 years, 3 months ago (2014-08-28 10:45:22 UTC) #24
Ilya Sherman
https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.h File components/password_manager/core/browser/password_syncable_service.h (right): https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.h#newcode95 components/password_manager/core/browser/password_syncable_service.h:95: struct SyncEntries; On 2014/08/28 10:45:20, vasilii wrote: > On ...
6 years, 3 months ago (2014-08-29 20:32:02 UTC) #25
manthd
lgtm https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.cc File components/password_manager/core/browser/password_syncable_service.cc (right): https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.cc#newcode53 components/password_manager/core/browser/password_syncable_service.cc:53: case PasswordStoreChange::REMOVE: return syncer::SyncChange::ACTION_DELETE; On 2014/08/28 10:45:20, vasilii ...
6 years, 3 months ago (2014-08-29 21:06:03 UTC) #26
Ilya Sherman
https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.h File components/password_manager/core/browser/password_syncable_service.h (right): https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.h#newcode95 components/password_manager/core/browser/password_syncable_service.h:95: struct SyncEntries; On 2014/08/29 21:06:03, manthd wrote: > On ...
6 years, 3 months ago (2014-08-29 21:26:07 UTC) #27
vasilii
https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.h File components/password_manager/core/browser/password_syncable_service.h (right): https://codereview.chromium.org/403323004/diff/160001/components/password_manager/core/browser/password_syncable_service.h#newcode82 components/password_manager/core/browser/password_syncable_service.h:82: const autofill::PasswordForm& password); On 2014/08/29 21:06:03, manthd wrote: > ...
6 years, 3 months ago (2014-09-01 09:27:02 UTC) #28
manthd
lgtm FYI, I'm going on vacation for a week. As far as I'm concerned this ...
6 years, 3 months ago (2014-09-02 19:27:10 UTC) #29
Ilya Sherman
LGTM % a final nit. Thanks, Vasilii! https://codereview.chromium.org/403323004/diff/200001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/200001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode39 components/password_manager/core/browser/password_syncable_service_unittest.cc:39: nit: I'd ...
6 years, 3 months ago (2014-09-02 20:34:18 UTC) #30
vasilii
https://codereview.chromium.org/403323004/diff/200001/components/password_manager/core/browser/password_syncable_service_unittest.cc File components/password_manager/core/browser/password_syncable_service_unittest.cc (right): https://codereview.chromium.org/403323004/diff/200001/components/password_manager/core/browser/password_syncable_service_unittest.cc#newcode39 components/password_manager/core/browser/password_syncable_service_unittest.cc:39: On 2014/09/02 20:34:18, Ilya Sherman wrote: > nit: I'd ...
6 years, 3 months ago (2014-09-03 08:16:03 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vasilii@chromium.org/403323004/220001
6 years, 3 months ago (2014-09-03 08:16:51 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 09:15:40 UTC) #34
commit-bot: I haz the power
Committed patchset #12 (id:220001) as 539e57dcba9eef9368e84e31b879458c3bcacccc
6 years, 3 months ago (2014-09-03 09:57:24 UTC) #35
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:24:46 UTC) #36
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/9db0a1d04fb44ff57833f94d1c68e50d062c1dc9
Cr-Commit-Position: refs/heads/master@{#293107}

Powered by Google App Engine
This is Rietveld 408576698