Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: chrome/browser/extensions/api/chrome_extensions_api_client.cc

Issue 181233011: Revert of Add ExtensionsApiClient interface, use it in the storage API SettingsFrontend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698