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

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

Issue 10908065: Introduce a couple of abstract bases for WebDataService. (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/webdata/web_data_service_factory.cc
diff --git a/chrome/browser/webdata/web_data_service_factory.cc b/chrome/browser/webdata/web_data_service_factory.cc
index 006a0fc7a3585dd205cc3409a3a8af9882551720..5c0968d0feaf4185fb42992c6928ab69bc707830 100644
--- a/chrome/browser/webdata/web_data_service_factory.cc
+++ b/chrome/browser/webdata/web_data_service_factory.cc
@@ -9,6 +9,15 @@
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/chrome_constants.h"
+// static
+scoped_refptr<WebDataServiceBase> WebDataServiceBase::ForProfile(
+ Profile* profile) {
+ // TODO(joi): Does the implicit/explicit distinction really matter?
+ // It's just used for a DCHECK.
+ return WebDataServiceFactory::GetForProfile(profile,
+ Profile::EXPLICIT_ACCESS);
+}
+
WebDataServiceFactory::WebDataServiceFactory()
: RefcountedProfileKeyedServiceFactory(
"WebDataService",

Powered by Google App Engine
This is Rietveld 408576698