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

Unified Diff: chrome/browser/sync/profile_sync_factory.h

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 years, 8 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/sync/profile_sync_factory.h
diff --git a/chrome/browser/sync/profile_sync_factory.h b/chrome/browser/sync/profile_sync_factory.h
index 776b61dde26fe3c96d7587e0c877b1e4887a382d..8befe3513cc5a76f465e49490391b892c72a2f89 100644
--- a/chrome/browser/sync/profile_sync_factory.h
+++ b/chrome/browser/sync/profile_sync_factory.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -47,12 +47,15 @@ class ProfileSyncFactory {
virtual ~ProfileSyncFactory() {}
- // Instantiates and initializes a new ProfileSyncService. Enabled
- // data types are registered with the service. The return pointer
- // is owned by the caller.
+ // Instantiates a new ProfileSyncService. The return pointer is owned by the
+ // caller.
virtual ProfileSyncService* CreateProfileSyncService(
const std::string& cros_user) = 0;
+ // Creates and registers enabled datatypes with the provided
+ // ProfileSyncService.
+ virtual void RegisterDataTypes(ProfileSyncService* pss) = 0;
+
// Instantiates a new DataTypeManager with a SyncBackendHost and a
// list of data type controllers. The return pointer is owned by
// the caller.
« no previous file with comments | « chrome/browser/sync/glue/typed_url_data_type_controller.cc ('k') | chrome/browser/sync/profile_sync_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698