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

Unified Diff: chrome/browser/extensions/api/storage/settings_backend.cc

Issue 189263013: Move extensions storage API implementation to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (move_storage) 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/storage/settings_backend.cc
diff --git a/chrome/browser/extensions/api/storage/settings_backend.cc b/chrome/browser/extensions/api/storage/settings_backend.cc
deleted file mode 100644
index 8264e334335ddbf19436bf8a2e196ad7b06b3741..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/storage/settings_backend.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/extensions/api/storage/settings_backend.h"
-
-#include "base/logging.h"
-#include "chrome/browser/extensions/api/storage/settings_storage_factory.h"
-#include "content/public/browser/browser_thread.h"
-
-using content::BrowserThread;
-
-namespace extensions {
-
-SettingsBackend::SettingsBackend(
- const scoped_refptr<SettingsStorageFactory>& storage_factory,
- const base::FilePath& base_path,
- const SettingsStorageQuotaEnforcer::Limits& quota)
- : storage_factory_(storage_factory), base_path_(base_path), quota_(quota) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-}
-
-SettingsBackend::~SettingsBackend() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-}
-
-syncer::SyncableService* SettingsBackend::GetAsSyncableService() {
- NOTREACHED();
- return NULL;
-}
-
-scoped_ptr<SettingsStorageQuotaEnforcer>
-SettingsBackend::CreateStorageForExtension(
- const std::string& extension_id) const {
- scoped_ptr<SettingsStorageQuotaEnforcer> storage(
- new SettingsStorageQuotaEnforcer(
- quota(), storage_factory()->Create(base_path(), extension_id)));
- DCHECK(storage.get());
- return storage.Pass();
-}
-
-} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/storage/settings_backend.h ('k') | chrome/browser/extensions/api/storage/settings_frontend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698