Index: chrome/browser/sync/glue/autofill_profile_data_type_controller.cc |
=================================================================== |
--- chrome/browser/sync/glue/autofill_profile_data_type_controller.cc (revision 136877) |
+++ chrome/browser/sync/glue/autofill_profile_data_type_controller.cc (working copy) |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/sync/profile_sync_components_factory.h" |
#include "chrome/browser/sync/profile_sync_service.h" |
#include "chrome/browser/webdata/web_data_service.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/notification_service.h" |
@@ -54,7 +55,8 @@ |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
DCHECK_EQ(state(), MODEL_STARTING); |
personal_data_->RemoveObserver(this); |
- web_data_service_ = profile()->GetWebDataService(Profile::IMPLICIT_ACCESS); |
+ web_data_service_ = WebDataServiceFactory::GetForProfile( |
+ profile(), Profile::IMPLICIT_ACCESS); |
if (web_data_service_.get() && web_data_service_->IsDatabaseLoaded()) { |
DoStartAssociationAsync(); |
} else { |
@@ -84,7 +86,8 @@ |
return false; |
} |
- web_data_service_ = profile()->GetWebDataService(Profile::IMPLICIT_ACCESS); |
+ web_data_service_ = WebDataServiceFactory::GetForProfile( |
+ profile(), Profile::IMPLICIT_ACCESS); |
if (web_data_service_.get() && web_data_service_->IsDatabaseLoaded()) { |
return true; |
} else { |