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

Issue 19675010: [win] Initialize the app list menu lazily, and allow invalidation. (Closed)

Created:
7 years, 5 months ago by tapted
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
M ui/app_list/views/app_list_view.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/views/search_box_view.h View 1 2 3 4 4 chunks +4 lines, -2 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 2 3 4 4 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tapted
Ben, could you take a look? I think you are most familiar with these waters..
7 years, 5 months ago (2013-07-23 01:06:41 UTC) #1
benwells
https://codereview.chromium.org/19675010/diff/7001/ui/app_list/views/app_list_main_view.cc File ui/app_list/views/app_list_main_view.cc (right): https://codereview.chromium.org/19675010/diff/7001/ui/app_list/views/app_list_main_view.cc#newcode93 ui/app_list/views/app_list_main_view.cc:93: search_box_view_ = new SearchBoxView(this); Should you update the menu ...
7 years, 5 months ago (2013-07-23 01:10:43 UTC) #2
tapted
https://codereview.chromium.org/19675010/diff/7001/ui/app_list/views/app_list_main_view.cc File ui/app_list/views/app_list_main_view.cc (right): https://codereview.chromium.org/19675010/diff/7001/ui/app_list/views/app_list_main_view.cc#newcode93 ui/app_list/views/app_list_main_view.cc:93: search_box_view_ = new SearchBoxView(this); On 2013/07/23 01:10:43, benwells wrote: ...
7 years, 5 months ago (2013-07-23 01:16:47 UTC) #3
benwells
https://codereview.chromium.org/19675010/diff/7001/ui/app_list/views/app_list_main_view.cc File ui/app_list/views/app_list_main_view.cc (right): https://codereview.chromium.org/19675010/diff/7001/ui/app_list/views/app_list_main_view.cc#newcode93 ui/app_list/views/app_list_main_view.cc:93: search_box_view_ = new SearchBoxView(this); On 2013/07/23 01:16:47, tapted wrote: ...
7 years, 5 months ago (2013-07-23 01:23:26 UTC) #4
tapted
PTAL - this makes the menu population lazy, making its initialization more akin to per-item ...
7 years, 5 months ago (2013-07-23 03:37:57 UTC) #5
benwells
I like the laziness, but I'm not sure about the change to the delegate structure. ...
7 years, 5 months ago (2013-07-23 03:58:57 UTC) #6
tapted
On 2013/07/23 03:58:57, benwells wrote: > I like the laziness, but I'm not sure about ...
7 years, 5 months ago (2013-07-23 04:13:47 UTC) #7
tapted
PTAL - this now keeps both delegates in SearchBoxView
7 years, 5 months ago (2013-07-24 01:50:48 UTC) #8
koz (OOO until 15th September)
lgtm
7 years, 5 months ago (2013-07-24 02:57:36 UTC) #9
benwells
lgtm
7 years, 5 months ago (2013-07-25 00:59:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/19675010/43001
7 years, 5 months ago (2013-07-25 01:17:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/19675010/58001
7 years, 5 months ago (2013-07-25 16:34:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/19675010/58001
7 years, 5 months ago (2013-07-26 00:45:52 UTC) #13
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 08:49:00 UTC) #14
Message was sent while issue was closed.
Change committed as 213807

Powered by Google App Engine
This is Rietveld 408576698