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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller.cc

Issue 5159001: Rest of the autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch uploaded to debug why try servers have problem applying this patch. Created 10 years 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/autofill_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller.cc b/chrome/browser/sync/glue/autofill_data_type_controller.cc
index 6a827c9ef9407558346963e44afff67b4b10e09c..8661e14bfc0fe7169c0d8ab2f1f9de68c1603610 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller.cc
@@ -12,8 +12,8 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/glue/autofill_change_processor.h"
#include "chrome/browser/sync/glue/autofill_model_associator.h"
-#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_factory.h"
+#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/notification_service.h"
@@ -170,6 +170,19 @@ DataTypeController::State AutofillDataTypeController::state() {
return state_;
}
+ProfileSyncFactory::SyncComponents
+ AutofillDataTypeController::CreateSyncComponents(
+ ProfileSyncService* profile_sync_service,
+ WebDatabase* web_database,
+ PersonalDataManager* personal_data,
+ browser_sync::UnrecoverableErrorHandler* error_handler) {
+ return profile_sync_factory_->CreateAutofillSyncComponents(
+ profile_sync_service,
+ web_database,
+ personal_data,
+ this);
+}
+
void AutofillDataTypeController::StartImpl() {
VLOG(1) << "Autofill data type controller StartImpl called.";
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
@@ -182,7 +195,7 @@ void AutofillDataTypeController::StartImpl() {
return;
}
ProfileSyncFactory::SyncComponents sync_components =
- profile_sync_factory_->CreateAutofillSyncComponents(
+ CreateSyncComponents(
sync_service_,
web_data_service_->GetDatabase(),
profile_->GetPersonalDataManager(),
« no previous file with comments | « chrome/browser/sync/glue/autofill_data_type_controller.h ('k') | chrome/browser/sync/glue/autofill_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698