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 void SetAppListNextPaintCallback(void (*callback)()) override {} | 24 void SetAppListNextPaintCallback(void (*callback)()) override {} |
25 void Init(Profile* initial_profile) override {} | 25 void Init(Profile* initial_profile) override {} |
26 | 26 |
27 base::FilePath GetProfilePath(const base::FilePath& user_data_dir) override { | 27 base::FilePath GetProfilePath() override { |
28 return base::FilePath(); | 28 return base::FilePath(); |
29 } | 29 } |
30 void SetProfilePath(const base::FilePath& profile_path) override {} | 30 void SetProfilePath(const base::FilePath& profile_path) override {} |
31 | 31 |
32 void Show() override {} | 32 void Show() override {} |
33 void ShowForProfile(Profile* profile) override {} | 33 void ShowForProfile(Profile* profile) override {} |
34 void ShowForVoiceSearch( | 34 void ShowForVoiceSearch( |
35 Profile* profile, | 35 Profile* profile, |
36 const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble) | 36 const scoped_refptr<content::SpeechRecognitionSessionPreamble>& preamble) |
37 override {} | 37 override {} |
(...skipping 30 matching lines...) Expand all Loading... |
68 | 68 |
69 // static | 69 // static |
70 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {} | 70 void AppListService::RegisterPrefs(PrefRegistrySimple* registry) {} |
71 | 71 |
72 // static | 72 // static |
73 bool AppListService::HandleLaunchCommandLine( | 73 bool AppListService::HandleLaunchCommandLine( |
74 const base::CommandLine& command_line, | 74 const base::CommandLine& command_line, |
75 Profile* launch_profile) { | 75 Profile* launch_profile) { |
76 return false; | 76 return false; |
77 } | 77 } |
OLD | NEW |