OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/sync_value_store_cache.h" | 5 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
11 #include "chrome/browser/extensions/api/storage/settings_frontend.h" | |
12 #include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.
h" | |
13 #include "chrome/browser/extensions/api/storage/sync_storage_backend.h" | 11 #include "chrome/browser/extensions/api/storage/sync_storage_backend.h" |
14 #include "chrome/browser/sync/glue/sync_start_util.h" | 12 #include "chrome/browser/sync/glue/sync_start_util.h" |
15 #include "chrome/common/extensions/api/storage.h" | 13 #include "chrome/common/extensions/api/storage.h" |
16 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "extensions/browser/api/storage/settings_frontend.h" |
| 16 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" |
17 #include "extensions/common/constants.h" | 17 #include "extensions/common/constants.h" |
18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace extensions { | 22 namespace extensions { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Returns the quota limit for sync storage, taken from the schema in | 26 // Returns the quota limit for sync storage, taken from the schema in |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 factory, | 106 factory, |
107 profile_path.AppendASCII(kSyncExtensionSettingsDirectoryName), | 107 profile_path.AppendASCII(kSyncExtensionSettingsDirectoryName), |
108 GetSyncQuotaLimits(), | 108 GetSyncQuotaLimits(), |
109 observers, | 109 observers, |
110 syncer::EXTENSION_SETTINGS, | 110 syncer::EXTENSION_SETTINGS, |
111 sync_start_util::GetFlareForSyncableService(profile_path))); | 111 sync_start_util::GetFlareForSyncableService(profile_path))); |
112 initialized_ = true; | 112 initialized_ = true; |
113 } | 113 } |
114 | 114 |
115 } // namespace extensions | 115 } // namespace extensions |
OLD | NEW |