| OLD | NEW |
| 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( | 24 virtual void SetAppListNextPaintCallback(void (*callback)()) OVERRIDE {} |
| 25 const base::Closure& callback) OVERRIDE {} | |
| 26 virtual void HandleFirstRun() OVERRIDE {} | 25 virtual void HandleFirstRun() OVERRIDE {} |
| 27 virtual void Init(Profile* initial_profile) OVERRIDE {} | 26 virtual void Init(Profile* initial_profile) OVERRIDE {} |
| 28 | 27 |
| 29 virtual base::FilePath GetProfilePath( | 28 virtual base::FilePath GetProfilePath( |
| 30 const base::FilePath& user_data_dir) OVERRIDE { | 29 const base::FilePath& user_data_dir) OVERRIDE { |
| 31 return base::FilePath(); | 30 return base::FilePath(); |
| 32 } | 31 } |
| 33 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE {} | 32 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE {} |
| 34 | 33 |
| 35 virtual void Show() OVERRIDE {} | 34 virtual void Show() OVERRIDE {} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 60 } | 59 } |
| 61 | 60 |
| 62 // static | 61 // static |
| 63 void AppListService::InitAll(Profile* initial_profile) {} | 62 void AppListService::InitAll(Profile* initial_profile) {} |
| 64 | 63 |
| 65 // static | 64 // static |
| 66 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {} | 65 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {} |
| 67 | 66 |
| 68 // static | 67 // static |
| 69 void AppListService::RecordShowTimings(const CommandLine& command_line) {} | 68 void AppListService::RecordShowTimings(const CommandLine& command_line) {} |
| OLD | NEW |