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.h" |
| 6 |
| 7 #include "base/file_path.h" |
| 8 |
| 9 namespace { |
| 10 |
| 11 class AppListServiceDisabled : public AppListService { |
| 12 public: |
| 13 AppListServiceDisabled() {} |
| 14 |
| 15 private: |
| 16 DISALLOW_COPY_AND_ASSIGN(AppListServiceDisabled); |
| 17 }; |
| 18 |
| 19 AppListServiceDisabled* GetDisabled() { |
| 20 CR_DEFINE_STATIC_LOCAL(AppListServiceDisabled, disabled_instance, ()); |
| 21 return &disabled_instance; |
| 22 } |
| 23 |
| 24 } // namespace |
| 25 |
| 26 // static |
| 27 AppListService* AppListService::Get() { |
| 28 return GetDisabled(); |
| 29 } |
| 30 |
| 31 // static |
| 32 base::FilePath AppListService::GetAppListProfilePath( |
| 33 const base::FilePath& user_data_dir) { |
| 34 NOTREACHED(); |
| 35 return base::FilePath(); |
| 36 } |
| 37 |
| 38 // static |
| 39 void AppListService::RegisterAppListPrefs(PrefRegistrySimple* registry) {} |
OLD | NEW |