summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager.cc
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 20:09:13 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 20:09:13 +0000
commit5e61afb935ec49bda9c3a1ef33fc11eaae242beb (patch)
tree8f6ce2ee74bffaaf7680fceb6b65fdf9c6c11f2f /chrome/browser/autofill/personal_data_manager.cc
parentb7df4e2be5517bc7914152609e957b77dbcfb26f (diff)
downloadchromium_src-5e61afb935ec49bda9c3a1ef33fc11eaae242beb.zip
chromium_src-5e61afb935ec49bda9c3a1ef33fc11eaae242beb.tar.gz
chromium_src-5e61afb935ec49bda9c3a1ef33fc11eaae242beb.tar.bz2
Remove a bunch of GetProfileSyncService callers to use the new factory.
This is mostly everything except code under /sync or sync_internals (those require a little more time as they have unit test implications). The ones here are quite simple but need several owner-approvals, and given the upcoming 18 branch I'd like to get this landed without a cross-team monday crunch :) TBR=jhawkins@chromium.org TBR=mirandac@chromium.org TBR=isherman@chromium.org TBR=nkostylev@chromium.org TBR=estade@chromium.org BUG=93922 Review URL: http://codereview.chromium.org/9169096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager.cc')
-rw-r--r--chrome/browser/autofill/personal_data_manager.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index 5c14f7a..f291cf9 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
@@ -190,7 +191,8 @@ void PersonalDataManager::OnStateChanged() {
return;
}
- ProfileSyncService* sync_service = profile_->GetProfileSyncService();
+ ProfileSyncService* sync_service =
+ ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_);
if (!sync_service)
return;
@@ -889,7 +891,8 @@ void PersonalDataManager::EmptyMigrationTrash() {
return;
}
- ProfileSyncService* sync_service = profile_->GetProfileSyncService();
+ ProfileSyncService* sync_service =
+ ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_);
if (!sync_service)
return;