| OLD | NEW |
| 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 "chrome/common/extensions/extension.h" | 10 #include "extensions/common/extension.h" |
| 11 #include "chrome/common/extensions/permissions/permissions_data.h" | 11 #include "extensions/common/permissions/permissions_data.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 namespace settings_test_util { | 15 namespace settings_test_util { |
| 16 | 16 |
| 17 // Intended as a StorageCallback from GetStorage. | 17 // Intended as a StorageCallback from GetStorage. |
| 18 static void AssignStorage(ValueStore** dst, ValueStore* src) { | 18 static void AssignStorage(ValueStore** dst, ValueStore* src) { |
| 19 *dst = src; | 19 *dst = src; |
| 20 } | 20 } |
| 21 | 21 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } // namespace settings_test_util | 165 } // namespace settings_test_util |
| 166 | 166 |
| 167 } // namespace extensions | 167 } // namespace extensions |
| OLD | NEW |