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

Unified Diff: extensions/browser/api/extensions_api_client.cc

Issue 180213008: Add ExtensionsApiClient interface, use it in the storage API SettingsFrontend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows (delegate_storage_api) Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/api/extensions_api_client.h ('k') | extensions/browser/api/storage/settings_namespace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/extensions_api_client.cc
diff --git a/extensions/browser/api/extensions_api_client.cc b/extensions/browser/api/extensions_api_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c4f80133a2b7365945045731cb0552a37ae274ca
--- /dev/null
+++ b/extensions/browser/api/extensions_api_client.cc
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/browser/api/extensions_api_client.h"
+
+namespace extensions {
+namespace {
+
+ExtensionsAPIClient* g_instance = NULL;
+
+} // namespace
+
+ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; }
+
+ExtensionsAPIClient::~ExtensionsAPIClient() { g_instance = NULL; }
+
+// static
+ExtensionsAPIClient* ExtensionsAPIClient::Get() { return g_instance; }
+
+void ExtensionsAPIClient::AddAdditionalValueStoreCaches(
+ content::BrowserContext* context,
+ const scoped_refptr<SettingsStorageFactory>& factory,
+ const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
+ std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) {}
+
+} // namespace extensions
« no previous file with comments | « extensions/browser/api/extensions_api_client.h ('k') | extensions/browser/api/storage/settings_namespace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698