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 "extensions/common/extensions_client.h" | 5 #include "extensions/common/extensions_client.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "extensions/common/extension_icon_set.h" | 8 #include "extensions/common/extension_icon_set.h" |
9 #include "extensions/common/manifest_handlers/icons_handler.h" | 9 #include "extensions/common/manifest_handlers/icons_handler.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 return g_client; | 21 return g_client; |
22 } | 22 } |
23 | 23 |
24 std::set<base::FilePath> ExtensionsClient::GetBrowserImagePaths( | 24 std::set<base::FilePath> ExtensionsClient::GetBrowserImagePaths( |
25 const Extension* extension) { | 25 const Extension* extension) { |
26 std::set<base::FilePath> paths; | 26 std::set<base::FilePath> paths; |
27 extensions::IconsInfo::GetIcons(extension).GetPaths(&paths); | 27 extensions::IconsInfo::GetIcons(extension).GetPaths(&paths); |
28 return paths; | 28 return paths; |
29 } | 29 } |
30 | 30 |
| 31 bool ExtensionsClient::ExtensionAPIEnabledInExtensionServiceWorkers() const { |
| 32 return false; |
| 33 } |
| 34 |
31 void ExtensionsClient::Set(ExtensionsClient* client) { | 35 void ExtensionsClient::Set(ExtensionsClient* client) { |
32 // This can happen in unit tests, where the utility thread runs in-process. | 36 // This can happen in unit tests, where the utility thread runs in-process. |
33 if (g_client) | 37 if (g_client) |
34 return; | 38 return; |
35 g_client = client; | 39 g_client = client; |
36 g_client->Initialize(); | 40 g_client->Initialize(); |
37 } | 41 } |
38 | 42 |
39 } // namespace extensions | 43 } // namespace extensions |
OLD | NEW |