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

Issue 8515030: Do not clear tokens from db when the user enters new credentials. (Closed)

Created:
9 years, 1 month ago by lipalani1
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin
Visibility:
Public.

Description

When the user enters new credentials to sync we clear the data from db as well as in memory. However if at this state the user restarts the browser sync will not initialize the next time thinking that user has not setup sync. This fix prevents the data from being cleared from db. So on restart we can still initialize sync and display auth error. BUG=103861 TEST=manual by running the repro, sync_integration_tests.exe and unit_tests.exe Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109744

Patch Set 1 #

Total comments: 2

Patch Set 2 : For review. #

Patch Set 3 : For review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -10 lines) Patch
M chrome/browser/sync/profile_sync_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/signin_manager.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/signin_manager.cc View 1 2 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/signin_manager_unittest.cc View 1 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
lipalani1
Please review. Also with an eye towards whether this could break any other service that ...
9 years, 1 month ago (2011-11-11 02:46:49 UTC) #1
tim (not reviewing)
On 2011/11/11 02:46:49, lipalani1 wrote: > Please review. > Also with an eye towards whether ...
9 years, 1 month ago (2011-11-11 05:38:01 UTC) #2
lipalani
this again is deliberate as the username is missing. We can change the other piece ...
9 years, 1 month ago (2011-11-11 05:41:37 UTC) #3
tim (not reviewing)
We store the username in the syncdb "share_info" table. This was originally used so that ...
9 years, 1 month ago (2011-11-11 05:53:03 UTC) #4
tim (not reviewing)
Ok, chatted with Lingesh and this LGTM with a few fallout bugs we can follow ...
9 years, 1 month ago (2011-11-11 18:46:47 UTC) #5
Nicolas Zea
drive by comment since I was curious about this change (no need to wait for ...
9 years, 1 month ago (2011-11-11 19:24:47 UTC) #6
lipalani1
Answering Tim's questions: 1. it turns out GetAuthenticatedUserName is used too :) The code seems ...
9 years, 1 month ago (2011-11-11 19:38:31 UTC) #7
tim (not reviewing)
LGTM
9 years, 1 month ago (2011-11-11 20:04:01 UTC) #8
Rick Campbell
lgtm as well
9 years, 1 month ago (2011-11-11 21:01:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lipalani@chromium.org/8515030/8003
9 years, 1 month ago (2011-11-11 23:29:40 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-12 00:43:21 UTC) #11
Change committed as 109744

Powered by Google App Engine
This is Rietveld 408576698