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

Issue 10382071: Notify sync observers whenever preferred types change (Closed)

Created:
8 years, 7 months ago by Andrew T Wilson (Slow)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

Notify sync observers whenever preferred types change Changed ProfileSyncService so any call to OnUserChoseDatatypes() will result in observers being notified even if configuration is aborted due to passphrase-required errors. Also updated sync config UI so the "invalid passphrase" error is generated even for blank passphrases. BUG=122734 TEST=Turn on explicit passphrase, setup sync, turn off passwords, click OK. Then go into settings and turn passwords on again, click OK, then cancel out of the dialog - wrench menu should have "passphrase error" badge. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136934

Patch Set 1 #

Patch Set 2 : Fixed sync_integration_tests. #

Total comments: 4

Patch Set 3 : Review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -8 lines) Patch
M chrome/browser/sync/profile_sync_service.cc View 1 2 5 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 5 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 chunk +18 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Andrew T Wilson (Slow)
PTAL.
8 years, 7 months ago (2012-05-10 03:40:11 UTC) #1
Nicolas Zea
LGTM http://codereview.chromium.org/10382071/diff/7001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/10382071/diff/7001/chrome/browser/sync/profile_sync_service.cc#newcode1138 chrome/browser/sync/profile_sync_service.cc:1138: NotifyObservers(); was the consensus to put this in ...
8 years, 7 months ago (2012-05-10 20:35:07 UTC) #2
Andrew T Wilson (Slow)
jhawkins: Please take a look at sync_setup_handler.cc. http://codereview.chromium.org/10382071/diff/7001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/10382071/diff/7001/chrome/browser/sync/profile_sync_service.cc#newcode1138 chrome/browser/sync/profile_sync_service.cc:1138: NotifyObservers(); I ...
8 years, 7 months ago (2012-05-11 23:58:39 UTC) #3
James Hawkins
LGTM. Is it just me or is this beyond hairy?
8 years, 7 months ago (2012-05-14 05:19:12 UTC) #4
Andrew T Wilson (Slow)
On 2012/05/14 05:19:12, James Hawkins wrote: > LGTM. Is it just me or is this ...
8 years, 7 months ago (2012-05-14 17:05:25 UTC) #5
Andrew T Wilson (Slow)
On 2012/05/14 05:19:12, James Hawkins wrote: > LGTM. Is it just me or is this ...
8 years, 7 months ago (2012-05-14 17:05:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10382071/13001
8 years, 7 months ago (2012-05-14 17:05:41 UTC) #7
commit-bot: I haz the power
8 years, 7 months ago (2012-05-14 19:23:19 UTC) #8
Change committed as 136934

Powered by Google App Engine
This is Rietveld 408576698