Chromium Code Reviews| 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 #include "base/logging.h" | |
| 9 | |
| 10 namespace { | |
| 11 | |
| 12 class AppListServiceDisabled : public AppListService { | |
| 13 public: | |
| 14 AppListServiceDisabled() {} | |
| 15 | |
| 16 private: | |
| 17 DISALLOW_COPY_AND_ASSIGN(AppListServiceDisabled); | |
| 18 }; | |
| 19 | |
| 20 AppListServiceDisabled* GetDisabled() { | |
|
benwells
2013/02/21 04:34:36
For consistency, I think this should be GetAppList
tapted
2013/02/25 07:09:21
Done. But have a look - maybe it would be nicer in
| |
| 21 CR_DEFINE_STATIC_LOCAL(AppListServiceDisabled, disabled_instance, ()); | |
| 22 return &disabled_instance; | |
| 23 } | |
| 24 | |
| 25 } // namespace | |
| 26 | |
| 27 // static | |
| 28 AppListService* AppListService::Get() { | |
| 29 return GetDisabled(); | |
| 30 } | |
| 31 | |
| 32 void AppListService::InitAll(Profile* initial_profile) {} | |
| OLD | NEW |