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

Side by Side Diff: chrome/browser/ui/app_list/app_list_service_impl.cc

Issue 23315002: Add UMA for first app list paint on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/app_list/app_list_service_impl.h" 5 #include "chrome/browser/ui/app_list/app_list_service_impl.h"
6 6
7 #include "apps/pref_names.h" 7 #include "apps/pref_names.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 profile_load_sequence_id_(0), 113 profile_load_sequence_id_(0),
114 pending_profile_loads_(0), 114 pending_profile_loads_(0),
115 weak_factory_(this), 115 weak_factory_(this),
116 profile_loader_(g_browser_process->profile_manager()) { 116 profile_loader_(g_browser_process->profile_manager()) {
117 ProfileManager* profile_manager = g_browser_process->profile_manager(); 117 ProfileManager* profile_manager = g_browser_process->profile_manager();
118 profile_manager->GetProfileInfoCache().AddObserver(this); 118 profile_manager->GetProfileInfoCache().AddObserver(this);
119 } 119 }
120 120
121 AppListServiceImpl::~AppListServiceImpl() {} 121 AppListServiceImpl::~AppListServiceImpl() {}
122 122
123 void AppListServiceImpl::SetAppListNextPaintCallback(
124 const base::Closure& callback) {}
125
123 void AppListServiceImpl::HandleFirstRun() {} 126 void AppListServiceImpl::HandleFirstRun() {}
124 127
125 void AppListServiceImpl::Init(Profile* initial_profile) {} 128 void AppListServiceImpl::Init(Profile* initial_profile) {}
126 129
127 base::FilePath AppListServiceImpl::GetProfilePath( 130 base::FilePath AppListServiceImpl::GetProfilePath(
128 const base::FilePath& user_data_dir) { 131 const base::FilePath& user_data_dir) {
129 PrefService* local_state = g_browser_process->local_state(); 132 PrefService* local_state = g_browser_process->local_state();
130 DCHECK(local_state); 133 DCHECK(local_state);
131 134
132 std::string app_list_profile; 135 std::string app_list_profile;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 profile_loader_.InvalidatePendingProfileLoads(); 222 profile_loader_.InvalidatePendingProfileLoads();
220 } 223 }
221 224
222 void AppListServiceImpl::HandleCommandLineFlags(Profile* initial_profile) { 225 void AppListServiceImpl::HandleCommandLineFlags(Profile* initial_profile) {
223 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAppList)) 226 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAppList))
224 EnableAppList(initial_profile); 227 EnableAppList(initial_profile);
225 228
226 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableAppList)) 229 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableAppList))
227 SetAppListEnabledPreference(false); 230 SetAppListEnabledPreference(false);
228 } 231 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698