1 // Copyright 2014 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. 4 5 #include "extensions/renderer/extensions_renderer_client.h" 6 7 #include "base/basictypes.h" 8 #include "base/logging.h" 9 10 namespace extensions { 11 12 namespace { 13 14 ExtensionsRendererClient* g_client = NULL; 15 16 } // namespace 17 18 ExtensionsRendererClient* ExtensionsRendererClient::Get() { 19 CHECK(g_client); 20 return g_client; 21 } 22 23 void ExtensionsRendererClient::Set(ExtensionsRendererClient* client) { 24 g_client = client; 25 } 26 27 } // namespace extensions 28