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

Unified Diff: chrome/browser/ui/views/app_list/win/app_list_service_win.cc

Issue 366233002: Refine UMA quality for warm-start app list cases (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to master Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/app_list/win/app_list_service_win.cc
diff --git a/chrome/browser/ui/views/app_list/win/app_list_service_win.cc b/chrome/browser/ui/views/app_list/win/app_list_service_win.cc
index 0525dd1f1373d99423ecd91a0808eb67421db2f4..df86e78e9523d8436dd9ea631357d6331382e1cd 100644
--- a/chrome/browser/ui/views/app_list/win/app_list_service_win.cc
+++ b/chrome/browser/ui/views/app_list/win/app_list_service_win.cc
@@ -275,7 +275,10 @@ void AppListServiceWin::OnLoadProfileForWarmup(Profile* initial_profile) {
}
void AppListServiceWin::SetAppListNextPaintCallback(void (*callback)()) {
- next_paint_callback_ = base::Bind(callback);
+ if (shower().app_list())
+ shower().app_list()->SetNextPaintCallback(base::Bind(callback));
+ else
+ next_paint_callback_ = base::Bind(callback);
}
void AppListServiceWin::HandleFirstRun() {
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698