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

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

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (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 5c0968d0feaf4185fb42992c6928ab69bc707830..10794d121a9d9ede66764317990840d213af5012 100644
--- a/chrome/browser/webdata/web_data_service_factory.cc
+++ b/chrome/browser/webdata/web_data_service_factory.cc
@@ -10,12 +10,12 @@
#include "chrome/common/chrome_constants.h"
// static
-scoped_refptr<WebDataServiceBase> WebDataServiceBase::ForProfile(
- Profile* profile) {
+scoped_refptr<WebDataServiceBase> WebDataServiceBase::ForContext(
+ content::BrowserContext* context) {
// TODO(joi): Does the implicit/explicit distinction really matter?
// It's just used for a DCHECK.
- return WebDataServiceFactory::GetForProfile(profile,
- Profile::EXPLICIT_ACCESS);
+ return WebDataServiceFactory::GetForProfile(
+ static_cast<Profile*>(context), Profile::EXPLICIT_ACCESS);
}
WebDataServiceFactory::WebDataServiceFactory()

Powered by Google App Engine
This is Rietveld 408576698