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

Side by Side Diff: chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.cc

Issue 165223003: Add a Restore() method to ValueStore and make StorageAPI use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage. h" 5 #include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage. h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage( 9 WeakUnlimitedSettingsStorage::WeakUnlimitedSettingsStorage(
10 ValueStore* delegate) 10 ValueStore* delegate)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove( 58 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Remove(
59 const std::vector<std::string>& keys) { 59 const std::vector<std::string>& keys) {
60 return delegate_->Remove(keys); 60 return delegate_->Remove(keys);
61 } 61 }
62 62
63 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() { 63 ValueStore::WriteResult WeakUnlimitedSettingsStorage::Clear() {
64 return delegate_->Clear(); 64 return delegate_->Clear();
65 } 65 }
66 66
67 bool WeakUnlimitedSettingsStorage::Restore() {
68 return delegate_->Restore();
69 }
70
71 bool WeakUnlimitedSettingsStorage::RestoreKey(const std::string& key) {
72 return delegate_->RestoreKey(key);
73 }
74
67 } // namespace extensions 75 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698