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.
5 #include "extensions/common/extensions_client.h"
7 #include "base/basictypes.h"
8 #include "base/logging.h"
9 #include "extensions/common/extension_icon_set.h"
10 #include "extensions/common/manifest_handlers/icons_handler.h"
12 namespace extensions
{
16 ExtensionsClient
* g_client
= NULL
;
20 ExtensionsClient
* ExtensionsClient::Get() {
25 std::set
<base::FilePath
> ExtensionsClient::GetBrowserImagePaths(
26 const Extension
* extension
) {
27 std::set
<base::FilePath
> paths
;
28 extensions::IconsInfo::GetIcons(extension
).GetPaths(&paths
);
32 void ExtensionsClient::Set(ExtensionsClient
* client
) {
33 // This can happen in unit tests, where the utility thread runs in-process.
37 g_client
->Initialize();
40 } // namespace extensions