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

Issue 350883002: Refactor handling of --show-app-list command line. (Closed)

Created:
6 years, 6 months ago by tapted
Modified:
6 years, 5 months ago
Reviewers:
msw, Matt Giuca
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Refactor handling of --show-app-list command line. AppListService's RecordStartupTimings is currently broken. To completely fix, it needs to incorporate the Profile* that StartupBrowserCreatorImpl wants to load, which is not currently passed in. This change adds AppListService::HandleLaunchCommandLine, abstracting away the details of initializing, showing, and recording UMA for the app list. A follow-up will fix RecordStartupTimings. BUG=382793 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281708

Patch Set 1 #

Patch Set 2 : update test #

Patch Set 3 : nits #

Patch Set 4 : rebase on crrev/362933002 #

Total comments: 7

Patch Set 5 : resopnd to comments #

Patch Set 6 : split off into crrev/366233002 #

Total comments: 2

Patch Set 7 : DCHECK(service) #

Total comments: 6

Patch Set 8 : respond to comments #

Patch Set 9 : fix disabled stub [android] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -36 lines) Patch
M chrome/browser/ui/app_list/app_list_service.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_service.cc View 1 2 3 4 5 6 7 3 chunks +38 lines, -27 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_disabled.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
tapted
Sir Matt, PTAL
6 years, 5 months ago (2014-07-01 02:51:00 UTC) #1
Matt Giuca
Hi, I find your commit description fairly mysterious. Before I look too closely at this ...
6 years, 5 months ago (2014-07-02 04:28:42 UTC) #2
tapted
On 2014/07/02 04:28:42, Matt Giuca wrote: > Hi, I find your commit description fairly mysterious. ...
6 years, 5 months ago (2014-07-02 06:25:38 UTC) #3
Matt Giuca
OK I think this looks good, but the amount of code moving around at the ...
6 years, 5 months ago (2014-07-02 07:35:18 UTC) #4
tapted
forked into https://codereview.chromium.org/366233002/ https://codereview.chromium.org/350883002/diff/120001/chrome/browser/ui/app_list/app_list_service.cc File chrome/browser/ui/app_list/app_list_service.cc (right): https://codereview.chromium.org/350883002/diff/120001/chrome/browser/ui/app_list/app_list_service.cc#newcode93 chrome/browser/ui/app_list/app_list_service.cc:93: if (g_profile_load_state == PROFILE_LOADED_NONE) On 2014/07/02 ...
6 years, 5 months ago (2014-07-04 03:00:02 UTC) #5
Matt Giuca
lgtm with optional nit, and ALSO, I don't like the CL description. You shouldn't frame ...
6 years, 5 months ago (2014-07-04 04:37:15 UTC) #6
tapted
CL descriptions should have an element of "why the change is made" (see http://www.chromium.org/developers/contributing-code#TOC-Change-List-Description-Structured-Elements ), ...
6 years, 5 months ago (2014-07-07 07:52:35 UTC) #7
tapted
+msw for OWNERS (c/b/ui/startup/startup_browser_creator_impl.cc)
6 years, 5 months ago (2014-07-07 23:56:05 UTC) #8
msw
https://codereview.chromium.org/350883002/diff/180001/chrome/browser/ui/app_list/app_list_service.cc File chrome/browser/ui/app_list/app_list_service.cc (right): https://codereview.chromium.org/350883002/diff/180001/chrome/browser/ui/app_list/app_list_service.cc#newcode65 chrome/browser/ui/app_list/app_list_service.cc:65: void RecordFirstPaintTiming(); Remove this, reorder RecordStartupTimings after its actual ...
6 years, 5 months ago (2014-07-08 01:05:07 UTC) #9
tapted
https://codereview.chromium.org/350883002/diff/180001/chrome/browser/ui/app_list/app_list_service.cc File chrome/browser/ui/app_list/app_list_service.cc (right): https://codereview.chromium.org/350883002/diff/180001/chrome/browser/ui/app_list/app_list_service.cc#newcode65 chrome/browser/ui/app_list/app_list_service.cc:65: void RecordFirstPaintTiming(); On 2014/07/08 01:05:07, msw wrote: > Remove ...
6 years, 5 months ago (2014-07-08 01:41:32 UTC) #10
msw
LGTM
6 years, 5 months ago (2014-07-08 03:41:56 UTC) #11
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 5 months ago (2014-07-08 03:58:12 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/350883002/220001
6 years, 5 months ago (2014-07-08 04:00:06 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 06:01:32 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 06:10:52 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/158891)
6 years, 5 months ago (2014-07-08 06:10:52 UTC) #16
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 5 months ago (2014-07-08 06:58:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/350883002/240001
6 years, 5 months ago (2014-07-08 06:58:40 UTC) #18
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 10:29:39 UTC) #19
Message was sent while issue was closed.
Change committed as 281708

Powered by Google App Engine
This is Rietveld 408576698