| 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/basictypes.h" | |
| 8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 9 #include "extensions/common/extension_icon_set.h" | 8 #include "extensions/common/extension_icon_set.h" |
| 10 #include "extensions/common/manifest_handlers/icons_handler.h" | 9 #include "extensions/common/manifest_handlers/icons_handler.h" |
| 11 | 10 |
| 12 namespace extensions { | 11 namespace extensions { |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 | 14 |
| 16 ExtensionsClient* g_client = NULL; | 15 ExtensionsClient* g_client = NULL; |
| 17 | 16 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 | 30 |
| 32 void ExtensionsClient::Set(ExtensionsClient* client) { | 31 void ExtensionsClient::Set(ExtensionsClient* client) { |
| 33 // This can happen in unit tests, where the utility thread runs in-process. | 32 // This can happen in unit tests, where the utility thread runs in-process. |
| 34 if (g_client) | 33 if (g_client) |
| 35 return; | 34 return; |
| 36 g_client = client; | 35 g_client = client; |
| 37 g_client->Initialize(); | 36 g_client->Initialize(); |
| 38 } | 37 } |
| 39 | 38 |
| 40 } // namespace extensions | 39 } // namespace extensions |
| OLD | NEW |