OLD | NEW |
---|---|
(Empty) | |
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/browser/api/extensions_api_client.h" | |
6 | |
7 namespace extensions { | |
8 namespace { | |
9 | |
10 ExtensionsApiClient* g_client = NULL; | |
11 | |
12 } // namespace | |
13 | |
14 ExtensionsApiClient::ExtensionsApiClient() {} | |
15 | |
16 ExtensionsApiClient::~ExtensionsApiClient() {} | |
17 | |
18 void ExtensionsApiClient::AddAdditionalValueStoreCaches( | |
19 content::BrowserContext* context, | |
20 scoped_refptr<SettingsStorageFactory> factory, | |
21 scoped_refptr<ObserverListThreadSafe<SettingsObserver> > observers, | |
22 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) {} | |
23 | |
24 // static | |
25 ExtensionsApiClient* ExtensionsApiClient::Get() { return g_client; } | |
26 | |
27 // static | |
28 void ExtensionsApiClient::Set(ExtensionsApiClient* client) { | |
29 g_client = client; | |
Devlin
2014/03/03 17:07:59
Should we ever be able to quietly reset a client?
James Cook
2014/03/03 19:53:09
We used to have DCHECK(!g_client) in the other ext
Devlin
2014/03/03 20:25:27
Ah, okay.
| |
30 } | |
31 | |
32 } // namespace extensions | |
OLD | NEW |