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

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

Issue 23315002: Add UMA for first app list paint on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux compile 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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/memory/singleton.h" 6 #include "base/memory/singleton.h"
7 #include "chrome/browser/ui/app_list/app_list_service.h" 7 #include "chrome/browser/ui/app_list/app_list_service.h"
8 8
9 namespace { 9 namespace {
10 10
11 class AppListServiceDisabled : public AppListService { 11 class AppListServiceDisabled : public AppListService {
12 public: 12 public:
13 static AppListServiceDisabled* GetInstance() { 13 static AppListServiceDisabled* GetInstance() {
14 return Singleton<AppListServiceDisabled, 14 return Singleton<AppListServiceDisabled,
15 LeakySingletonTraits<AppListServiceDisabled> >::get(); 15 LeakySingletonTraits<AppListServiceDisabled> >::get();
16 } 16 }
17 17
18 private: 18 private:
19 friend struct DefaultSingletonTraits<AppListServiceDisabled>; 19 friend struct DefaultSingletonTraits<AppListServiceDisabled>;
20 20
21 AppListServiceDisabled() {} 21 AppListServiceDisabled() {}
22 22
23 // AppListService overrides: 23 // AppListService overrides:
24 virtual void SetAppListNextPaintCallback(
25 const base::Closure& callback) OVERRIDE {}
24 virtual void HandleFirstRun() OVERRIDE {} 26 virtual void HandleFirstRun() OVERRIDE {}
25 virtual void Init(Profile* initial_profile) OVERRIDE {} 27 virtual void Init(Profile* initial_profile) OVERRIDE {}
26 28
27 virtual base::FilePath GetProfilePath( 29 virtual base::FilePath GetProfilePath(
28 const base::FilePath& user_data_dir) OVERRIDE { 30 const base::FilePath& user_data_dir) OVERRIDE {
29 return base::FilePath(); 31 return base::FilePath();
30 } 32 }
31 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE {} 33 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE {}
32 34
33 virtual void Show() OVERRIDE {} 35 virtual void Show() OVERRIDE {}
(...skipping 24 matching lines...) Expand all
58 } 60 }
59 61
60 // static 62 // static
61 void AppListService::InitAll(Profile* initial_profile) {} 63 void AppListService::InitAll(Profile* initial_profile) {}
62 64
63 // static 65 // static
64 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {} 66 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {}
65 67
66 // static 68 // static
67 void AppListService::RecordShowTimings(const CommandLine& command_line) {} 69 void AppListService::RecordShowTimings(const CommandLine& command_line) {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698