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

Unified Diff: chrome/browser/sync/glue/non_ui_data_type_controller.h

Issue 247433004: sync: remove CreateSharedChangeProcessor from ProfileSyncComponentsFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove SCPFactory Created 6 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/glue/non_ui_data_type_controller.h
diff --git a/chrome/browser/sync/glue/non_ui_data_type_controller.h b/chrome/browser/sync/glue/non_ui_data_type_controller.h
index 696aee246d6b3c4edc0e908923ed391034da2b1a..f7c8d68d4429af68d3aa769af114a25a43eddc27 100644
--- a/chrome/browser/sync/glue/non_ui_data_type_controller.h
+++ b/chrome/browser/sync/glue/non_ui_data_type_controller.h
@@ -99,6 +99,10 @@ class NonUIDataTypeController : public DataTypeController {
// Record causes of start failure.
virtual void RecordStartFailure(StartResult result);
+ // To allow unit tests to control thread interaction during non-ui startup
+ // and shutdown, use a factory method to create the SharedChangeProcessor.
+ virtual SharedChangeProcessor* CreateSharedChangeProcessor();
+
Profile* profile() const { return profile_; }
private:

Powered by Google App Engine
This is Rietveld 408576698