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

Unified Diff: chrome/browser/webdata/web_data_service_factory.h

Issue 72613006: Eliminate AutofillWebDataService::FromBrowserContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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/webdata/web_data_service_factory.h
diff --git a/chrome/browser/webdata/web_data_service_factory.h b/chrome/browser/webdata/web_data_service_factory.h
index cb80c23be977fb5b5e37df87dda74454c8f8434d..87d42c1e6d171fef69abf9803e8d2755e00312dd 100644
--- a/chrome/browser/webdata/web_data_service_factory.h
+++ b/chrome/browser/webdata/web_data_service_factory.h
@@ -53,14 +53,19 @@ class WebDataServiceWrapper : public BrowserContextKeyedService {
// Profiles.
class WebDataServiceFactory : public BrowserContextKeyedServiceFactory {
public:
- // Returns the |WebDataServiceWrapper| associated with the |profile|.
- // |access_type| is either EXPLICIT_ACCESS or IMPLICIT_ACCESS
- // (see its definition).
+ // Returns the WebDataServiceWrapper associated with the |profile|.
static WebDataServiceWrapper* GetForProfile(
- Profile* profile, Profile::ServiceAccessType access_type);
+ Profile* profile,
+ Profile::ServiceAccessType access_type);
static WebDataServiceWrapper* GetForProfileIfExists(
- Profile* profile, Profile::ServiceAccessType access_type);
+ Profile* profile,
+ Profile::ServiceAccessType access_type);
+
+ // Returns the AutofillWebDataService associated with the |profile|.
+ static scoped_refptr<autofill::AutofillWebDataService>
+ GetAutofillWebDataForProfile(Profile* profile,
+ Profile::ServiceAccessType access_type);
static WebDataServiceFactory* GetInstance();
« no previous file with comments | « chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc ('k') | chrome/browser/webdata/web_data_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698