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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_test_util.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: Latest master 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/settings_test_util.h" 5 #include "chrome/browser/extensions/api/storage/settings_test_util.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "chrome/browser/extensions/api/storage/settings_frontend.h" 8 #include "chrome/browser/extensions/api/storage/settings_frontend.h"
9 #include "chrome/browser/extensions/extension_system_factory.h" 9 #include "chrome/browser/extensions/extension_system_factory.h"
10 #include "extensions/common/extension.h" 10 #include "extensions/common/extension.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 delegate_ = delegate; 155 delegate_ = delegate;
156 } 156 }
157 157
158 ValueStore* ScopedSettingsStorageFactory::Create( 158 ValueStore* ScopedSettingsStorageFactory::Create(
159 const base::FilePath& base_path, 159 const base::FilePath& base_path,
160 const std::string& extension_id) { 160 const std::string& extension_id) {
161 DCHECK(delegate_.get()); 161 DCHECK(delegate_.get());
162 return delegate_->Create(base_path, extension_id); 162 return delegate_->Create(base_path, extension_id);
163 } 163 }
164 164
165 void ScopedSettingsStorageFactory::DeleteDatabaseIfExists(
166 const base::FilePath& base_path,
167 const std::string& extension_id) {
168 delegate_->DeleteDatabaseIfExists(base_path, extension_id);
169 }
170
165 } // namespace settings_test_util 171 } // namespace settings_test_util
166 172
167 } // namespace extensions 173 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/storage/settings_test_util.h ('k') | chrome/browser/extensions/api/storage/storage_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698