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

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

Issue 68173019: Remove static initializer from AppListView::SetNextPaintCallback(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
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 <string> 7 #include <string>
8 8
9 #include "apps/pref_names.h" 9 #include "apps/pref_names.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 weak_factory_(this), 188 weak_factory_(this),
189 command_line_(command_line), 189 command_line_(command_line),
190 local_state_(local_state), 190 local_state_(local_state),
191 profile_loader_(new ProfileLoader( 191 profile_loader_(new ProfileLoader(
192 profile_store_.get(), keep_alive_service.Pass())) { 192 profile_store_.get(), keep_alive_service.Pass())) {
193 profile_store_->AddProfileObserver(this); 193 profile_store_->AddProfileObserver(this);
194 } 194 }
195 195
196 AppListServiceImpl::~AppListServiceImpl() {} 196 AppListServiceImpl::~AppListServiceImpl() {}
197 197
198 void AppListServiceImpl::SetAppListNextPaintCallback( 198 void AppListServiceImpl::SetAppListNextPaintCallback(void (*callback)()) {}
199 const base::Closure& callback) {}
200 199
201 void AppListServiceImpl::HandleFirstRun() {} 200 void AppListServiceImpl::HandleFirstRun() {}
202 201
203 void AppListServiceImpl::Init(Profile* initial_profile) {} 202 void AppListServiceImpl::Init(Profile* initial_profile) {}
204 203
205 base::FilePath AppListServiceImpl::GetProfilePath( 204 base::FilePath AppListServiceImpl::GetProfilePath(
206 const base::FilePath& user_data_dir) { 205 const base::FilePath& user_data_dir) {
207 std::string app_list_profile; 206 std::string app_list_profile;
208 if (local_state_->HasPrefPath(prefs::kAppListProfile)) 207 if (local_state_->HasPrefPath(prefs::kAppListProfile))
209 app_list_profile = local_state_->GetString(prefs::kAppListProfile); 208 app_list_profile = local_state_->GetString(prefs::kAppListProfile);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 279 }
281 280
282 void AppListServiceImpl::SendUsageStats() { 281 void AppListServiceImpl::SendUsageStats() {
283 // Send app list usage stats after a delay. 282 // Send app list usage stats after a delay.
284 const int kSendUsageStatsDelay = 5; 283 const int kSendUsageStatsDelay = 5;
285 base::MessageLoop::current()->PostDelayedTask( 284 base::MessageLoop::current()->PostDelayedTask(
286 FROM_HERE, 285 FROM_HERE,
287 base::Bind(&AppListServiceImpl::SendAppListStats), 286 base::Bind(&AppListServiceImpl::SendAppListStats),
288 base::TimeDelta::FromSeconds(kSendUsageStatsDelay)); 287 base::TimeDelta::FromSeconds(kSendUsageStatsDelay));
289 } 288 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698