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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 10910071: Extract abstract base to API directory for ProfileSyncService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More unit test fixes. Created 8 years, 3 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/ui/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 3562ea7b0f6f01d417420193fc4319b304e6d04a..6ee181e7e2203ac7fb3bf01b94d28e4c60120807 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -10,6 +10,8 @@
#include "chrome/browser/password_manager/password_manager.h"
#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/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
@@ -33,6 +35,10 @@ TabAutofillManagerDelegate::GetOriginalBrowserContext() const {
return tab_->profile()->GetOriginalProfile();
}
+Profile* TabAutofillManagerDelegate::GetOriginalProfile() const {
+ return tab_->profile()->GetOriginalProfile();
+}
+
InfoBarService* TabAutofillManagerDelegate::GetInfoBarService() {
return tab_->infobar_tab_helper();
}
@@ -41,6 +47,10 @@ PrefServiceBase* TabAutofillManagerDelegate::GetPrefs() {
return tab_->profile()->GetPrefs();
}
+ProfileSyncServiceBase* TabAutofillManagerDelegate::GetProfileSyncService() {
+ return ProfileSyncServiceFactory::GetForProfile(tab_->profile());
+}
+
bool TabAutofillManagerDelegate::IsSavingPasswordsEnabled() const {
return tab_->password_manager()->IsSavingEnabled();
}
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.h ('k') | chrome/browser/ui/browser_command_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698