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

Issue 283013: Make user name not editable when re-login is required.... (Closed)

Created:
11 years, 2 months ago by RandyPosynick
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ncarter (slow), ben+cc_chromium.org, idana
Visibility:
Public.

Description

Make user name not editable when re-login is required. BUG=19721 TEST=To test: (1) Enable sync (2) Quit chromium (3) Find Sync Data\BookmarkSyncSettings.sqlite3 in your chromium profile and open it in SQLite Browser. (4) Edit the record in the 'cookies' table and change the 'service_token' value to 'x'. Save the DB. (5) Re-launch chromium. You should see a 'Sync Error' notie on the new tab page. Click it and you will see the login window. The username field should contain your login as simply bold text, NOT as an editable input field.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M chrome/browser/sync/resources/gaia_login.html View 3 chunks +8 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
RandyPosynick
First shot at this.
11 years, 2 months ago (2009-10-16 17:10:15 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/283013/diff/1/2 File chrome/browser/sync/resources/gaia_login.html (right): http://codereview.chromium.org/283013/diff/1/2#newcode63 Line 63: f.Email.style.display = 'none'; when does gaia_setFocus get called? ...
11 years, 1 month ago (2009-10-29 20:54:55 UTC) #2
tim (not reviewing)
On 2009/10/29 20:54:55, timsteele wrote: > http://codereview.chromium.org/283013/diff/1/2 > File chrome/browser/sync/resources/gaia_login.html (right): > > http://codereview.chromium.org/283013/diff/1/2#newcode63 > ...
11 years, 1 month ago (2009-11-04 20:55:55 UTC) #3
ChrisCampbell
11 years, 1 month ago (2009-11-05 00:20:53 UTC) #4
Looks like you're right... the proposed patch does assume that the user typed
their email address correctly the first time.

gaia_setFocus() only gets called from showGaiaLogin() a few lines below, but
*that* can get called via JS injection from FlowHandler::ShowGaiaLogin() in
sync_setup_flow.cc.

The error types passed in don't appear to be sufficient to let us distinguish
whether the Email has been successfully authenticated in the past.

A different approach (or more thorough) approach is required.

Powered by Google App Engine
This is Rietveld 408576698