Description[win] Initialize the app list menu lazily, and allow invalidation.
Currently the app launcher will show the old profile name, and no login
identity, after signing in for the first time, until the browser is
restarted (or the app list profile is switched).
This CL makes populating of the app list menu lazy, and allows the items
to be invalidated when the signin status changes. Simply setting the
CURRENT_USER menu item to be 'dynamic' is insufficient, because the menu
item uses a custom view which needs to be released and re-appended.
BUG=262639
TEST=Have Chrome not signed in, open a browser. Open app launcher, see
signin page, and sign in, leave browser window open. Reopen app
launcher, open menu: it should show email of the just-signed-in user.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213807
Patch Set 1 #Patch Set 2 : Rely on OnSigninStatusChanged call in AppListView constructor #Patch Set 3 : constructor does not need delegate, nit name #
Total comments: 3
Patch Set 4 : Lazy creation #Patch Set 5 : retain both delegates in SearchBoxView #Patch Set 6 : rebase/no-op because CQ is wedged #
Messages
Total messages: 14 (0 generated)
|