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

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

Issue 11826048: Revert 176015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/weak_unlimited_settings_storage.cc
===================================================================
--- chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc (revision 176046)
+++ chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc (working copy)
@@ -1,67 +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/weak_unlimited_settings_storage.h"
-
-namespace extensions {
-
-WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage(
- ValueStore* delegate)
- : delegate_(delegate) {}
-
-WeakUnlimitedSettingsStorage::~WeakUnlimitedSettingsStorage() {}
-
-size_t WeakUnlimitedSettingsStorage::GetBytesInUse(const std::string& key) {
- return delegate_->GetBytesInUse(key);
-}
-
-size_t WeakUnlimitedSettingsStorage::GetBytesInUse(
- const std::vector<std::string>& keys) {
- return delegate_->GetBytesInUse(keys);
-}
-
-
-size_t WeakUnlimitedSettingsStorage::GetBytesInUse() {
- return delegate_->GetBytesInUse();
-}
-
-ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
- const std::string& key) {
- return delegate_->Get(key);
-}
-
-ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get(
- const std::vector<std::string>& keys) {
- return delegate_->Get(keys);
-}
-
-ValueStore::ReadResult WeakUnlimitedSettingsStorage::Get() {
- return delegate_->Get();
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
- WriteOptions options, const std::string& key, const Value& value) {
- return delegate_->Set(IGNORE_QUOTA, key, value);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Set(
- WriteOptions options, const DictionaryValue& values) {
- return delegate_->Set(IGNORE_QUOTA, values);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
- const std::string& key) {
- return delegate_->Remove(key);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
- const std::vector<std::string>& keys) {
- return delegate_->Remove(keys);
-}
-
-ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() {
- return delegate_->Clear();
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698