Ignore non-active fullscreen windows for shelf state.
[chromium-blink-merge.git] / extensions / common / extensions_client.cc
blobccca164a5ff5e1f3f77b21ff77ebf00589dbe2eb
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 "extensions/common/extensions_client.h"
8 namespace extensions {
10 namespace {
12 ExtensionsClient* g_client = NULL;
14 } // namespace
16 ExtensionsClient* ExtensionsClient::Get() {
17 return g_client;
20 void ExtensionsClient::Set(ExtensionsClient* client) {
21 // This can happen in unit tests, where the utility thread runs in-process.
22 if (g_client)
23 return;
24 g_client = client;
25 g_client->Initialize();
28 } // namespace extensions