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

Issue 8787013: Fix the following issue in app notify login flow: (Closed)

Created:
9 years ago by Munjal (Google)
Modified:
9 years ago
CC:
chromium-reviews, jstritar+watch_chromium.org, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Fix the following issue in app notify login flow: If the user is already logged in pre M17 and user sets up notifications, the user will be asked to sign in. AppNOtifyChannelUI::OnStateChanged is called more than once before the oauth2 token is generated. Fix it by: Remembering if the wizard ever became visible instead of whether the callback happened once. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112953

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -7 lines) Patch
M chrome/browser/extensions/app_notify_channel_ui.h View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/extensions/app_notify_channel_ui.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Munjal (Google)
9 years ago (2011-12-03 08:34:40 UTC) #1
asargent_no_longer_on_chrome
9 years ago (2011-12-03 18:45:25 UTC) #2
LGTM

I assume you tested the case where the dialog is brought up, and then the user
just closes the sync setup tab?

http://codereview.chromium.org/8787013/diff/1/chrome/browser/extensions/app_n...
File chrome/browser/extensions/app_notify_channel_ui.cc (right):

http://codereview.chromium.org/8787013/diff/1/chrome/browser/extensions/app_n...
chrome/browser/extensions/app_notify_channel_ui.cc:134: wizard_shown_to_user_ =
wizard_visible;
nit: while this looks like it should work, would it be better to have this last
line be:

if (wizard_visible)
  wizard_shown_to_user_ = true;

?

That way any changes in the future wouldn't end up getting us confused and flip
wizard_shown_to_user_ from true back to false.

Powered by Google App Engine
This is Rietveld 408576698