Index: chrome/browser/ui/app_list/app_list_service_disabled.cc |
diff --git a/chrome/browser/ui/app_list/app_list_service_disabled.cc b/chrome/browser/ui/app_list/app_list_service_disabled.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9b1f0a1533b679d0d7681ca7369ca1ffea2e83ec |
--- /dev/null |
+++ b/chrome/browser/ui/app_list/app_list_service_disabled.cc |
@@ -0,0 +1,36 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/ui/app_list/app_list_service_disabled.h" |
+ |
+#include "base/files/file_path.h" |
+#include "base/memory/singleton.h" |
+#include "chrome/browser/ui/app_list/app_list_service.h" |
+ |
+namespace { |
+ |
+class AppListServiceDisabled : public AppListService { |
+ public: |
+ static AppListServiceDisabled* GetInstance() { |
+ return Singleton<AppListServiceDisabled, |
+ LeakySingletonTraits<AppListServiceDisabled> >::get(); |
+ } |
+ |
+ private: |
+ friend struct DefaultSingletonTraits<AppListServiceDisabled>; |
+ |
+ AppListServiceDisabled() {} |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AppListServiceDisabled); |
+}; |
+ |
+} // namespace |
+ |
+namespace chrome { |
+ |
+AppListService* GetAppListServiceDisabled() { |
+ return AppListServiceDisabled::GetInstance(); |
+} |
+ |
+} // namespace chrome |