| 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/browser/extensions_browser_client.h" | 5 #include "extensions/browser/extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 ExtensionsBrowserClient* g_client = NULL; | 13 ExtensionsBrowserClient* g_client = nullptr; |
| 14 | 14 |
| 15 } // namespace | 15 } // namespace |
| 16 | 16 |
| 17 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() { | 17 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() { |
| 18 return g_client; | 18 return g_client; |
| 19 } | 19 } |
| 20 | 20 |
| 21 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) { | 21 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) { |
| 22 g_client = client; | 22 g_client = client; |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace extensions | 25 } // namespace extensions |
| OLD | NEW |