Index: chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc |
diff --git a/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc b/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc |
index f6d5d1b5ca1cb1d47b3ec234784add4f2a477409..4c639b7ce084b0df750af5c2e928b1ece986e62c 100644 |
--- a/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc |
+++ b/chrome/browser/extensions/api/storage/sync_or_local_value_store_cache.cc |
@@ -13,6 +13,7 @@ |
#include "chrome/browser/extensions/api/storage/settings_storage_quota_enforcer.h" |
#include "chrome/browser/extensions/api/storage/weak_unlimited_settings_storage.h" |
#include "chrome/browser/extensions/extension_service.h" |
+#include "chrome/browser/sync/glue/sync_start_util.h" |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/extensions/permissions/api_permission.h" |
#include "content/public/browser/browser_thread.h" |
@@ -107,9 +108,14 @@ void SyncOrLocalValueStoreCache::InitOnFileThread( |
const base::FilePath extension_path = profile_path.AppendASCII( |
local ? ExtensionService::kLocalExtensionSettingsDirectoryName |
: ExtensionService::kSyncExtensionSettingsDirectoryName); |
- app_backend_.reset(new SettingsBackend(factory, app_path, quota, observers)); |
- extension_backend_.reset( |
- new SettingsBackend(factory, extension_path, quota, observers)); |
+ app_backend_.reset(new SettingsBackend( |
+ factory, app_path, syncer::APP_SETTINGS, quota, observers)); |
+ app_backend_->InjectStartSyncFlare( |
+ sync_start_util::GetFlareForSyncableService(profile_path)); |
not at google - send to devlin
2013/05/20 18:00:04
it looks like the flare can be a constructor param
tim (not reviewing)
2013/05/20 18:21:15
Good point, done.
|
+ extension_backend_.reset(new SettingsBackend( |
+ factory, extension_path, syncer::EXTENSION_SETTINGS, quota, observers)); |
+ extension_backend_->InjectStartSyncFlare( |
+ sync_start_util::GetFlareForSyncableService(profile_path)); |
} |
} // namespace extensions |