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

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: Response to reviews Created 7 years, 1 month 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..12e5c377ef19ddd26b9374170b65a8033cc79e08 100644
--- a/chrome/browser/webdata/web_data_service_factory.h
+++ b/chrome/browser/webdata/web_data_service_factory.h
@@ -62,6 +62,15 @@ class WebDataServiceFactory : public BrowserContextKeyedServiceFactory {
static WebDataServiceWrapper* GetForProfileIfExists(
Profile* profile, Profile::ServiceAccessType access_type);
+ // Returns the |AutofillWebDataService| associated with the |profile| (as
+ // |AutofillWebDataService| is shared with iOS, it cannot know directly about
+ // BrowserContext/Profile and thus cannot define this getter itself).
Peter Kasting 2013/11/19 19:14:15 Nit: Just: // Returns the AutofillWebDataServic
blundell 2013/12/02 16:11:00 Done.
+ // |access_type| is either EXPLICIT_ACCESS or IMPLICIT_ACCESS
+ // (see its definition).
+ static scoped_refptr<autofill::AutofillWebDataService>
Peter Kasting 2013/11/19 19:14:15 I thought our current recommendation on scoped_ref
blundell 2013/12/02 16:11:00 Yes, I filed crbug.com/321059. I'd rather keep tho
+ GetAutofillWebDataForProfile(Profile* profile,
+ Profile::ServiceAccessType access_type);
+
static WebDataServiceFactory* GetInstance();
private:

Powered by Google App Engine
This is Rietveld 408576698