[BuildBreak] Linux: Fix g++ 4.8 compilation for error: multi-line comment [-Werror...
[chromium-blink-merge.git] / extensions / common / extensions_client.cc
blob89795b86e45cb0df34392340de375773dad8cad0
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 "base/basictypes.h"
6 #include "base/logging.h"
7 #include "extensions/common/extensions_client.h"
9 namespace extensions {
11 namespace {
13 ExtensionsClient* g_client = NULL;
15 } // namespace
17 ExtensionsClient* ExtensionsClient::Get() {
18 DCHECK(g_client);
19 return g_client;
22 void ExtensionsClient::Set(ExtensionsClient* client) {
23 // This can happen in unit tests, where the utility thread runs in-process.
24 if (g_client)
25 return;
26 g_client = client;
27 g_client->Initialize();
30 } // namespace extensions