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

Unified Diff: chrome/browser/extensions/api/storage/settings_sync_util.h

Issue 2769113002: [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Rebase and removing dependent patch set. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/storage/settings_sync_util.h
diff --git a/chrome/browser/extensions/api/storage/settings_sync_util.h b/chrome/browser/extensions/api/storage/settings_sync_util.h
index 4e23bae06192c33f64f1cefd4804652e3caab65e..12bb7ee7be4336d220a5e5e8b0ff7303865bb8d7 100644
--- a/chrome/browser/extensions/api/storage/settings_sync_util.h
+++ b/chrome/browser/extensions/api/storage/settings_sync_util.h
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_UTIL_H_
#define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_UTIL_H_
+#include <string>
+
+#include "components/sync/driver/sync_client.h"
#include "components/sync/model/sync_change.h"
#include "components/sync/model/sync_data.h"
@@ -16,10 +19,6 @@ namespace content {
class BrowserContext;
}
-namespace syncer {
-class SyncableService;
-}
-
namespace extensions {
namespace settings_sync_util {
@@ -53,8 +52,9 @@ syncer::SyncChange CreateDelete(
// Returns the sync service for settings. Must be called on the FILE thread.
// |type| must be either APP_SETTINGS or EXTENSION_SETTINGS.
-syncer::SyncableService* GetSyncableService(content::BrowserContext* context,
- syncer::ModelType type);
+syncer::SyncClient::ServiceProvider GetSyncableServiceProvider(
+ content::BrowserContext* context,
+ syncer::ModelType type);
} // namespace settings_sync_util
« no previous file with comments | « chrome/browser/extensions/api/storage/settings_apitest.cc ('k') | chrome/browser/extensions/api/storage/settings_sync_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698