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

Unified Diff: chrome/browser/autofill/autofill_manager_delegate.h

Issue 10910071: Extract abstract base to API directory for ProfileSyncService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/autofill/autofill_manager_delegate.h
diff --git a/chrome/browser/autofill/autofill_manager_delegate.h b/chrome/browser/autofill/autofill_manager_delegate.h
index 915354b7b7d3584d35a7915bb2b5fb037072c68c..b5754b1f6c6d46eff58065f7afde52baa3bcd0e4 100644
--- a/chrome/browser/autofill/autofill_manager_delegate.h
+++ b/chrome/browser/autofill/autofill_manager_delegate.h
@@ -25,6 +25,7 @@ struct PasswordForm;
class InfoBarService;
class PrefServiceBase;
+class ProfileSyncServiceBase;
namespace autofill {
@@ -40,10 +41,10 @@ class AutofillManagerDelegate {
public:
virtual ~AutofillManagerDelegate() {}
- // Gets the BrowserContext the AutofillManager is in.
+ // Gets the BrowserContext associated with the delegate.
virtual content::BrowserContext* GetBrowserContext() const = 0;
- // Gets the BrowserContext the AutofillManager is in, or if in an
+ // Gets the BrowserContext associated with the delegate, or if in an
// incognito mode, the associated (original) BrowserContext.
virtual content::BrowserContext* GetOriginalBrowserContext() const = 0;
@@ -53,6 +54,10 @@ class AutofillManagerDelegate {
// Gets the preferences associated with the delegate.
virtual PrefServiceBase* GetPrefs() = 0;
+ // Gets the profile sync service associated with the delegate. Will
+ // be NULL if sync is not enabled.
+ virtual ProfileSyncServiceBase* GetProfileSyncService() = 0;
+
// Returns true if saving passwords is currently enabled for the
// delegate.
virtual bool IsSavingPasswordsEnabled() const = 0;

Powered by Google App Engine
This is Rietveld 408576698