| 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 "chrome/browser/extensions/api/chrome_extensions_api_client.h" | |
| 6 | |
| 7 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 8 #include "chrome/browser/extensions/api/storage/managed_value_store_cache.h" | |
| 9 #endif | |
| 10 | |
| 11 namespace extensions { | |
| 12 | |
| 13 ChromeExtensionsAPIClient::ChromeExtensionsAPIClient() {} | |
| 14 | |
| 15 ChromeExtensionsAPIClient::~ChromeExtensionsAPIClient() {} | |
| 16 | |
| 17 void ChromeExtensionsAPIClient::AddAdditionalValueStoreCaches( | |
| 18 content::BrowserContext* context, | |
| 19 const scoped_refptr<SettingsStorageFactory>& factory, | |
| 20 const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers, | |
| 21 std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) { | |
| 22 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 23 // Add support for chrome.storage.managed. | |
| 24 (*caches)[settings_namespace::MANAGED] = | |
| 25 new ManagedValueStoreCache(context, factory, observers); | |
| 26 #endif | |
| 27 } | |
| 28 | |
| 29 } // namespace extensions | |
| OLD | NEW |