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

Issue 1256803002: [Smart Lock, Prefs reconciliation] Prefs migration logic for desktop platforms. (Closed)

Created:
5 years, 5 months ago by melandory
Modified:
5 years, 2 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Smart Lock, Prefs reconciliation] Prefs migration logic for desktop platforms. Currently password manager in chrome is controlled by preference profile.password_manager_enabled. But Smart Lock behavior on Android is controlled by priority preference credentials_enable_service, which is also surfaced at passwords.google.com. So if users is a Smart Lock user and turn feature on Android (so passwords will not be saved and user will not be autosigned in), then it will not take any effect on the Chrome password manager. This behavior should be changed and Smart Lock users should be able to control Smart Lock behavior on Android and Chrome password manager behavior with one setting. This change implements the platforms. BUG=517087 Committed: https://crrev.com/fac58ec68f43cb21f1dc6a18e8878e03a63797fc Cr-Commit-Position: refs/heads/master@{#350162}

Patch Set 1 : #

Patch Set 2 : More tests #

Patch Set 3 : Cleanups #

Patch Set 4 : More tests #

Patch Set 5 : Fix mac #

Total comments: 48

Patch Set 6 : Refactor tests and comments for tests #

Patch Set 7 : Change comments style in tests. #

Patch Set 8 : Remove init from chrome_browser_main #

Patch Set 9 : :%s/PasswordSettingsMigrationService/PasswordManagerSettingMigraterService/g #

Patch Set 10 : #

Total comments: 24

Patch Set 11 : Basic two clients sync tests and PasswordSettingsMigrationService and PasswordSettingsMigrationServ… #

Patch Set 12 : More sync tests #

Patch Set 13 : #

Total comments: 26

Patch Set 14 : More two client tets #

Total comments: 2

Patch Set 15 : WIP #

Patch Set 16 : WIP #

Patch Set 17 : More tests #

Patch Set 18 : More tetst #

Patch Set 19 : WIP. New logic. #

Patch Set 20 : More structure to the tests #

Patch Set 21 : Cover table with a tests. #

Patch Set 22 : Sort tests. #

Total comments: 10

Patch Set 23 : #

Total comments: 8

Patch Set 24 : Follow one variable per declaration rule. #

Total comments: 23

Patch Set 25 : #

Total comments: 34

Patch Set 26 : #

Total comments: 10

Patch Set 27 : #

Patch Set 28 : Add guard #

Total comments: 3

Patch Set 29 : #

Total comments: 4

Patch Set 30 : git grep -l 'MigrationFieldTrial' | xargs sed -i 's/MigrationFieldTrial/GetMigrationFieldTrial/g' #

Patch Set 31 : git diff HEAD^.. --name-only | grep migrater | while read file ; do ./tools/git/move_source_file.py… #

Patch Set 32 : git grep -l 'PasswordManagerSettingMigraterService' | xargs sed -i 's/PasswordManagerSettingMigrate… #

Total comments: 45

Patch Set 33 : #

Patch Set 34 : #

Total comments: 21

Patch Set 35 : #

Patch Set 36 : #

Patch Set 37 : #

Total comments: 67

Patch Set 38 : #

Patch Set 39 : For review. #

Patch Set 40 : WIP. #

Patch Set 41 : #

Total comments: 127

Patch Set 42 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1282 lines, -12 lines) Patch
A chrome/browser/password_manager/password_manager_setting_migrator_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +167 lines, -0 lines 0 comments Download
A chrome/browser/password_manager/password_manager_setting_migrator_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +233 lines, -0 lines 0 comments Download
A chrome/browser/password_manager/password_manager_setting_migrator_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +266 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/multiple_client_password_manager_setting_migrator_service_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/password_manager_setting_migrator_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +301 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/two_client_password_manager_setting_migrator_service_sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_view_utils_desktop_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +2 lines, -4 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 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 2 chunks +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_settings_migration_experiment.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +5 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_manager_settings_migration_experiment_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +2 lines, -4 lines 0 comments Download
M components/password_manager/core/common/password_manager_pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +9 lines, -0 lines 0 comments Download
M components/password_manager/core/common/password_manager_pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 131 (57 generated)
melandory
Hi Balazs, can you look at the CL, please. Thanks in advance. P.S. Ignore failed ...
5 years, 4 months ago (2015-08-05 14:59:32 UTC) #4
melandory
Hi Vaclav, review this CL, please. You own every file except: chrome/browser/chrome_browser_main.cc
5 years, 4 months ago (2015-08-06 06:49:06 UTC) #7
vabr (Chromium)
On 2015/08/06 06:49:06, melandory wrote: > Hi Vaclav, > > review this CL, please. > ...
5 years, 4 months ago (2015-08-06 07:52:42 UTC) #8
vabr (Chromium)
On 2015/08/06 07:52:42, vabr (Chromium) wrote: > On 2015/08/06 06:49:06, melandory wrote: > > Hi ...
5 years, 4 months ago (2015-08-06 15:48:16 UTC) #9
vabr (Chromium)
Because Balázs is having a look as well, I'll post my comments from yesterday. Some ...
5 years, 4 months ago (2015-08-07 08:48:02 UTC) #10
vabr (Chromium)
https://codereview.chromium.org/1256803002/diff/160001/components/password_manager/core/common/password_manager_pref_names.cc File components/password_manager/core/common/password_manager_pref_names.cc (right): https://codereview.chromium.org/1256803002/diff/160001/components/password_manager/core/common/password_manager_pref_names.cc#newcode15 components/password_manager/core/common/password_manager_pref_names.cc:15: const char kCredentialEnableService[] = "credentials_enable_service"; Just to add to ...
5 years, 4 months ago (2015-08-07 09:26:21 UTC) #11
engedy
Looking good overall with mostly minor comments. There are a few edge cases and details ...
5 years, 4 months ago (2015-08-07 11:41:38 UTC) #12
vabr (Chromium)
Some quick responses to @engedy's comments. Vaclav https://codereview.chromium.org/1256803002/diff/160001/chrome/browser/password_manager/password_manager_migration_service.h File chrome/browser/password_manager/password_manager_migration_service.h (right): https://codereview.chromium.org/1256803002/diff/160001/chrome/browser/password_manager/password_manager_migration_service.h#newcode69 chrome/browser/password_manager/password_manager_migration_service.h:69: void Reconcile(PrefService* ...
5 years, 4 months ago (2015-08-07 11:56:19 UTC) #13
melandory
https://codereview.chromium.org/1256803002/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/1256803002/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1566 chrome/browser/chrome_browser_main.cc:1566: password_manager::PasswordSettingsMigrationService::Factory::GetForProfile( On 2015/08/07 11:41:38, engedy wrote: > It might ...
5 years, 4 months ago (2015-08-07 15:05:18 UTC) #15
melandory
5 years, 4 months ago (2015-08-07 15:05:20 UTC) #16
engedy
As discussed offline, relying on PROFILE_ADDED seems like the best workaround for now. Let me ...
5 years, 4 months ago (2015-08-10 10:51:25 UTC) #18
melandory
On 2015/08/10 10:51:25, engedy wrote: > As discussed offline, relying on PROFILE_ADDED seems like the ...
5 years, 4 months ago (2015-08-11 13:30:17 UTC) #20
vabr (Chromium)
Hi Tanja, My next batch of comments follows. Some of them only make sense if ...
5 years, 4 months ago (2015-08-12 08:25:51 UTC) #21
melandory
Somehow managed not to send my comments. https://codereview.chromium.org/1256803002/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/1256803002/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1566 chrome/browser/chrome_browser_main.cc:1566: password_manager::PasswordSettingsMigrationService::Factory::GetForProfile( On ...
5 years, 4 months ago (2015-08-12 09:03:24 UTC) #22
vabr (Chromium)
Thanks for the off-line discussion! With the one comment below, I now agree with the ...
5 years, 4 months ago (2015-08-12 12:32:09 UTC) #23
melandory
Addressed comments and add basic two client tests. Currently, trying to figure out how to ...
5 years, 4 months ago (2015-08-13 15:49:15 UTC) #25
melandory
Hey, can you have another look. Thanks!
5 years, 4 months ago (2015-08-14 14:00:35 UTC) #26
vabr (Chromium)
Hi Tanja, I managed to have a look at patch set 14, I have not ...
5 years, 4 months ago (2015-08-14 14:11:45 UTC) #27
vabr (Chromium)
Hi, Thanks for the more tests. I looked at patch set 15 and added one ...
5 years, 4 months ago (2015-08-14 14:55:20 UTC) #28
melandory
https://codereview.chromium.org/1256803002/diff/400001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): https://codereview.chromium.org/1256803002/diff/400001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc#newcode19 chrome/browser/password_manager/password_manager_setting_migrater_service.cc:19: namespace { On 2015/08/14 14:11:45, vabr (Chromium) wrote: > ...
5 years, 4 months ago (2015-08-17 16:28:56 UTC) #29
melandory
On 2015/08/17 16:28:56, melandory wrote: > https://codereview.chromium.org/1256803002/diff/400001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc > File > chrome/browser/password_manager/password_manager_setting_migrater_service.cc > (right): > > ...
5 years, 4 months ago (2015-08-21 14:53:06 UTC) #31
vabr (Chromium)
Thanks, especially the unittests are now much easier to read and provide great coverage. I ...
5 years, 3 months ago (2015-08-26 14:42:43 UTC) #32
melandory
PTAL https://codereview.chromium.org/1256803002/diff/600001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): https://codereview.chromium.org/1256803002/diff/600001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc#newcode94 chrome/browser/password_manager/password_manager_setting_migrater_service.cc:94: MigrateOffState(prefs); On 2015/08/26 14:42:43, vabr (slow start past ...
5 years, 3 months ago (2015-08-28 14:49:24 UTC) #33
vabr (Chromium)
Thanks for the update. This LGTM, with some comments. Cheers, Vaclav https://codereview.chromium.org/1256803002/diff/640001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): ...
5 years, 3 months ago (2015-08-28 16:58:19 UTC) #35
melandory
https://codereview.chromium.org/1256803002/diff/640001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): https://codereview.chromium.org/1256803002/diff/640001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc#newcode36 chrome/browser/password_manager/password_manager_setting_migrater_service.cc:36: void UpdatePreferencesValuesIfNeeded(PrefService* prefs, bool new_value) { On 2015/08/28 16:58:19, ...
5 years, 3 months ago (2015-08-31 08:54:38 UTC) #36
engedy
Some initial comments, I am still looking at it. https://codereview.chromium.org/1256803002/diff/700001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): https://codereview.chromium.org/1256803002/diff/700001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc#newcode69 chrome/browser/password_manager/password_manager_setting_migrater_service.cc:69: ...
5 years, 3 months ago (2015-08-31 18:17:23 UTC) #37
engedy
https://codereview.chromium.org/1256803002/diff/700001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): https://codereview.chromium.org/1256803002/diff/700001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc#newcode29 chrome/browser/password_manager/password_manager_setting_migrater_service.cc:29: // TODO(melandory): add histograms in order to track when ...
5 years, 3 months ago (2015-09-01 23:10:58 UTC) #38
melandory
https://codereview.chromium.org/1256803002/diff/700001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc File chrome/browser/password_manager/password_manager_setting_migrater_service.cc (right): https://codereview.chromium.org/1256803002/diff/700001/chrome/browser/password_manager/password_manager_setting_migrater_service.cc#newcode29 chrome/browser/password_manager/password_manager_setting_migrater_service.cc:29: // TODO(melandory): add histograms in order to track when ...
5 years, 3 months ago (2015-09-02 13:15:39 UTC) #47
engedy
Proofreading of the long comments section. I have added a bunch of phrasing nits. https://codereview.chromium.org/1256803002/diff/800001/chrome/browser/password_manager/password_manager_setting_migrater_service.h ...
5 years, 3 months ago (2015-09-02 13:31:21 UTC) #48
melandory
Hi pvalenzuela@, can you please take a look at two clients test? I also have ...
5 years, 3 months ago (2015-09-02 19:03:34 UTC) #50
Nicolas Zea
Couple comments, still trying to wrap my head around whether the truth table values make ...
5 years, 3 months ago (2015-09-03 22:44:16 UTC) #52
pval...(no longer on Chromium)
melandory@, To answer your question (assuming I understand it correctly), no. FakeServer will act more ...
5 years, 3 months ago (2015-09-04 00:01:41 UTC) #53
melandory
On 2015/09/04 00:01:41, pvalenzuela wrote: > melandory@, > > To answer your question (assuming I ...
5 years, 3 months ago (2015-09-04 15:32:09 UTC) #54
melandory
Hey pvalenzuela@: I also will add single client tests with fake server data and multiple ...
5 years, 3 months ago (2015-09-04 15:35:26 UTC) #55
melandory
Hey pvalenzuela@: I have another question: I'm adding data to the fake server for both ...
5 years, 3 months ago (2015-09-04 22:50:45 UTC) #56
melandory
Hey pvalenzuela@ and zea@: pvalenzuela@, I'm happy with multiple client tests and two client tests, ...
5 years, 3 months ago (2015-09-08 12:06:36 UTC) #57
Nicolas Zea
https://codereview.chromium.org/1256803002/diff/920001/chrome/browser/password_manager/password_manager_setting_migrater_service.h File chrome/browser/password_manager/password_manager_setting_migrater_service.h (right): https://codereview.chromium.org/1256803002/diff/920001/chrome/browser/password_manager/password_manager_setting_migrater_service.h#newcode55 chrome/browser/password_manager/password_manager_setting_migrater_service.h:55: // But correct final value in this case is ...
5 years, 3 months ago (2015-09-08 17:42:03 UTC) #61
melandory
https://codereview.chromium.org/1256803002/diff/920001/chrome/browser/password_manager/password_manager_setting_migrater_service.h File chrome/browser/password_manager/password_manager_setting_migrater_service.h (right): https://codereview.chromium.org/1256803002/diff/920001/chrome/browser/password_manager/password_manager_setting_migrater_service.h#newcode55 chrome/browser/password_manager/password_manager_setting_migrater_service.h:55: // But correct final value in this case is ...
5 years, 3 months ago (2015-09-08 19:54:09 UTC) #62
pval...(no longer on Chromium)
Re: priority prefs getting processed before normal prefs. I think this is a side-effect of ...
5 years, 3 months ago (2015-09-08 22:21:18 UTC) #63
Nicolas Zea
On 2015/09/08 19:54:09, melandory wrote: > https://codereview.chromium.org/1256803002/diff/920001/chrome/browser/password_manager/password_manager_setting_migrater_service.h > File chrome/browser/password_manager/password_manager_setting_migrater_service.h > (right): > > https://codereview.chromium.org/1256803002/diff/920001/chrome/browser/password_manager/password_manager_setting_migrater_service.h#newcode55 ...
5 years, 3 months ago (2015-09-09 00:08:27 UTC) #64
pval...(no longer on Chromium)
Some followup questions: 1) Do the single client tests pass? 2) Are you sure the ...
5 years, 3 months ago (2015-09-09 00:23:07 UTC) #65
melandory
On 2015/09/09 00:23:07, pvalenzuela wrote: > Some followup questions: > 1) Do the single client ...
5 years, 3 months ago (2015-09-09 14:33:00 UTC) #66
melandory
On 2015/09/09 00:08:27, Nicolas Zea wrote: > On 2015/09/08 19:54:09, melandory wrote: > > > ...
5 years, 3 months ago (2015-09-09 20:54:22 UTC) #67
Nicolas Zea
On 2015/09/09 20:54:22, melandory wrote: > On 2015/09/09 00:08:27, Nicolas Zea wrote: > > On ...
5 years, 3 months ago (2015-09-09 21:50:19 UTC) #68
pval...(no longer on Chromium)
Should these classes use the spelling "migrator" instead of "migrater?" It looks like migrater is ...
5 years, 3 months ago (2015-09-10 18:03:25 UTC) #73
melandory
On 2015/09/10 18:03:25, pvalenzuela wrote: > Should these classes use the spelling "migrator" instead of ...
5 years, 3 months ago (2015-09-10 20:38:34 UTC) #74
melandory
https://codereview.chromium.org/1256803002/diff/1020001/chrome/browser/sync/test/integration/password_manager_setting_migrater_helper.h File chrome/browser/sync/test/integration/password_manager_setting_migrater_helper.h (right): https://codereview.chromium.org/1256803002/diff/1020001/chrome/browser/sync/test/integration/password_manager_setting_migrater_helper.h#newcode15 chrome/browser/sync/test/integration/password_manager_setting_migrater_helper.h:15: base::FieldTrial* MigrationFieldTrial(); On 2015/09/10 18:03:25, pvalenzuela wrote: > should ...
5 years, 3 months ago (2015-09-10 20:38:43 UTC) #75
Nicolas Zea
FYI I haven't reviewed the code too closely, but the general approach to handling migration ...
5 years, 3 months ago (2015-09-10 20:42:13 UTC) #76
melandory
mlerman@chromium.org: Please review changes in chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
5 years, 3 months ago (2015-09-10 21:29:09 UTC) #78
Mike Lerman
Profiles extra_parts lgtm
5 years, 3 months ago (2015-09-10 21:38:42 UTC) #79
melandory
On 2015/09/10 21:38:42, Mike Lerman wrote: > Profiles extra_parts lgtm engedy@ nad vabr@, can you ...
5 years, 3 months ago (2015-09-11 09:58:41 UTC) #80
vabr (Chromium)
This still LGTM, with a couple of nitpicks. Cheers, Vaclav https://codereview.chromium.org/1256803002/diff/1080001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc File chrome/browser/password_manager/password_manager_setting_migrator_service.cc (right): https://codereview.chromium.org/1256803002/diff/1080001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc#newcode81 ...
5 years, 3 months ago (2015-09-11 12:44:50 UTC) #81
pval...(no longer on Chromium)
chrome/browser/sync/test/integration lgtm after you fix the two pending comments from vabr@ (comment punctuation and the ...
5 years, 3 months ago (2015-09-11 20:26:12 UTC) #82
vabr (Chromium)
https://codereview.chromium.org/1256803002/diff/1080001/chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc File chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc (right): https://codereview.chromium.org/1256803002/diff/1080001/chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc#newcode135 chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc:135: ASSERT_TRUE(SetupClients()); On 2015/09/11 20:26:12, pvalenzuela wrote: > On 2015/09/11 ...
5 years, 3 months ago (2015-09-13 11:32:48 UTC) #83
melandory
https://codereview.chromium.org/1256803002/diff/1080001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc File chrome/browser/password_manager/password_manager_setting_migrator_service.cc (right): https://codereview.chromium.org/1256803002/diff/1080001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc#newcode81 chrome/browser/password_manager/password_manager_setting_migrator_service.cc:81: LOG(ERROR) << "Sorry, you are not in experiment"; On ...
5 years, 3 months ago (2015-09-14 13:24:01 UTC) #84
melandory
5 years, 3 months ago (2015-09-14 13:24:07 UTC) #85
vabr (Chromium)
Hi Tanja, I still did not understand the sync_data_ values (as you could tell from ...
5 years, 3 months ago (2015-09-14 16:22:35 UTC) #88
battre
some drive-by comments (did not do a full review) https://codereview.chromium.org/1256803002/diff/1170001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc File chrome/browser/password_manager/password_manager_setting_migrator_service.cc (right): https://codereview.chromium.org/1256803002/diff/1170001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc#newcode43 chrome/browser/password_manager/password_manager_setting_migrator_service.cc:43: ...
5 years, 3 months ago (2015-09-14 19:41:27 UTC) #90
melandory
https://codereview.chromium.org/1256803002/diff/1170001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc File chrome/browser/password_manager/password_manager_setting_migrator_service.cc (right): https://codereview.chromium.org/1256803002/diff/1170001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc#newcode43 chrome/browser/password_manager/password_manager_setting_migrator_service.cc:43: if (legacy_pref_value != new_value) { On 2015/09/14 19:41:26, battre ...
5 years, 3 months ago (2015-09-15 07:23:17 UTC) #95
battre
https://codereview.chromium.org/1256803002/diff/1170001/components/password_manager/core/common/password_manager_pref_names.h File components/password_manager/core/common/password_manager_pref_names.h (right): https://codereview.chromium.org/1256803002/diff/1170001/components/password_manager/core/common/password_manager_pref_names.h#newcode31 components/password_manager/core/common/password_manager_pref_names.h:31: extern const char kCredentialsEnableService[]; On 2015/09/15 07:23:17, melandory wrote: ...
5 years, 3 months ago (2015-09-15 07:32:57 UTC) #96
melandory
https://codereview.chromium.org/1256803002/diff/1170001/components/password_manager/core/common/password_manager_pref_names.h File components/password_manager/core/common/password_manager_pref_names.h (right): https://codereview.chromium.org/1256803002/diff/1170001/components/password_manager/core/common/password_manager_pref_names.h#newcode31 components/password_manager/core/common/password_manager_pref_names.h:31: extern const char kCredentialsEnableService[]; On 2015/09/15 07:32:56, battre wrote: ...
5 years, 3 months ago (2015-09-15 07:39:24 UTC) #97
engedy
This is as far as I got today, I'll look at the Sync tests tomorrow. ...
5 years, 3 months ago (2015-09-15 19:37:21 UTC) #98
melandory
https://codereview.chromium.org/1256803002/diff/1280001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc File chrome/browser/password_manager/password_manager_setting_migrator_service.cc (right): https://codereview.chromium.org/1256803002/diff/1280001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc#newcode23 chrome/browser/password_manager/password_manager_setting_migrator_service.cc:23: void ChangeOnePrefBecauseAnotherPrefHasChanged( On 2015/09/15 19:37:20, engedy wrote: > Nit: ...
5 years, 3 months ago (2015-09-16 21:39:46 UTC) #105
engedy
Looking good! I am doing a final pass on tests to make sure all interesting ...
5 years, 3 months ago (2015-09-17 15:15:57 UTC) #107
engedy
LGTM % open comments. Thank you for your heroic effort on driving this CL to ...
5 years, 3 months ago (2015-09-17 17:41:21 UTC) #108
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256803002/1390017 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256803002/1390017
5 years, 3 months ago (2015-09-21 18:23:20 UTC) #112
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/102114)
5 years, 3 months ago (2015-09-21 18:36:39 UTC) #114
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256803002/1590001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256803002/1590001
5 years, 3 months ago (2015-09-21 23:13:24 UTC) #120
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/85827)
5 years, 3 months ago (2015-09-22 00:43:50 UTC) #122
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1256803002/1630001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1256803002/1630001
5 years, 3 months ago (2015-09-22 15:01:42 UTC) #127
commit-bot: I haz the power
Committed patchset #42 (id:1630001)
5 years, 3 months ago (2015-09-22 16:00:39 UTC) #128
commit-bot: I haz the power
Patchset 42 (id:??) landed as https://crrev.com/fac58ec68f43cb21f1dc6a18e8878e03a63797fc Cr-Commit-Position: refs/heads/master@{#350162}
5 years, 3 months ago (2015-09-22 16:01:26 UTC) #129
melandory
https://codereview.chromium.org/1256803002/diff/1500001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc File chrome/browser/password_manager/password_manager_setting_migrator_service.cc (right): https://codereview.chromium.org/1256803002/diff/1500001/chrome/browser/password_manager/password_manager_setting_migrator_service.cc#newcode17 chrome/browser/password_manager/password_manager_setting_migrator_service.cc:17: #include "components/sync_driver/sync_service.h" On 2015/09/17 15:15:55, engedy wrote: > nit: ...
5 years, 2 months ago (2015-10-14 08:39:10 UTC) #130
melandory
5 years, 2 months ago (2015-10-14 08:40:05 UTC) #131
Message was sent while issue was closed.
Summary of left overs, which should be adressed in separate CLs:


chrome/browser/password_manager/password_manager_setting_migrator_service.х:50
nit: This example here suggests that having a different pair of settings in the
Sync DB than in the PrefStore on MergeDataAndStartSyncing is a common case.
Should we use the example N=0 L=1 instead? (Note that this can happen now.



chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc:109
> I think this is the only usage of AssertPrefValues() where we want to abort
> after failure.
But it also shoudn't harm if we don't, we'll just get more unfulfilled
conditions.



chrome/browser/sync/test/integration/single_client_password_manager_setting_migrator_service_sync_test.cc:139
To clarify, does that data being injected through InjectDataToFakeServer() get
sent down to the client in MergeDataAndStartSyncing, or in subsequent
ProcessSyncChanges?

If the former, then that local and sync values are different can only happen if
the user has just set up Sync, right? If so, should we reorder these test cases
and let CanSyncStart return false first, and then call SetupSync to simulate a
real world situation better?

What I'd like to somehow verify here is that changes made during the
MergeDataAndStartSycing step will end up in Sync (so it would get synced to
legacy clients)?

chrome/browser/sync/test/integration/two_client_password_manager_setting_migrator_service_sync_test.cc:140
> Could we also add a sanity check test here with the special case we've talked
> about: 1 migrating and 1 legacy client, initial state NL=11, then the legacy
> client would do (without doing the waiting methods):
> 
>  1.) N=0
>  2.) L=0
>  3.) N=1
> 
> Basically, I'd like to ensure that if two conflicting changes arrive through
> ProcessSyncChanges in the same batch, we still do the right thing, and this
gets
> Synced to the legacy client.

As per offline discussion: think how to do it in another CL.

Powered by Google App Engine
This is Rietveld 408576698