OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/app_list/app_list_service_disabled.h" |
| 6 |
| 7 #include "base/files/file_path.h" |
| 8 #include "base/memory/singleton.h" |
| 9 #include "chrome/browser/ui/app_list/app_list_service.h" |
| 10 |
| 11 namespace { |
| 12 |
| 13 class AppListServiceDisabled : public AppListService { |
| 14 public: |
| 15 static AppListServiceDisabled* GetInstance() { |
| 16 return Singleton<AppListServiceDisabled, |
| 17 LeakySingletonTraits<AppListServiceDisabled> >::get(); |
| 18 } |
| 19 |
| 20 private: |
| 21 friend struct DefaultSingletonTraits<AppListServiceDisabled>; |
| 22 |
| 23 AppListServiceDisabled() {} |
| 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(AppListServiceDisabled); |
| 26 }; |
| 27 |
| 28 } // namespace |
| 29 |
| 30 namespace chrome { |
| 31 |
| 32 AppListService* GetAppListServiceDisabled() { |
| 33 return AppListServiceDisabled::GetInstance(); |
| 34 } |
| 35 |
| 36 } // namespace chrome |
OLD | NEW |