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

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

Issue 12851008: Create a common base class for all the webdatas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to committed parent and head. Created 7 years, 9 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 1064866b17121028dd33842d175ab42c66444b27..aef7c946a72410afc56b2e8ac2304122f5bfaf53 100644
--- a/chrome/browser/webdata/web_data_service_factory.cc
+++ b/chrome/browser/webdata/web_data_service_factory.cc
@@ -31,8 +31,8 @@ scoped_refptr<WebDataService> WebDataServiceWrapper::GetWebData() {
}
// static
-scoped_ptr<AutofillWebDataService> AutofillWebDataService::FromBrowserContext(
- content::BrowserContext* context) {
+scoped_refptr<AutofillWebDataService>
+AutofillWebDataService::FromBrowserContext(content::BrowserContext* context) {
// For this service, the implicit/explicit distinction doesn't
// really matter; it's just used for a DCHECK. So we currently
// cheat and always say EXPLICIT_ACCESS.
@@ -40,10 +40,10 @@ scoped_ptr<AutofillWebDataService> AutofillWebDataService::FromBrowserContext(
static_cast<Profile*>(context), Profile::EXPLICIT_ACCESS);
if (service.get()) {
- return scoped_ptr<AutofillWebDataService>(
+ return scoped_refptr<AutofillWebDataService>(
new AutofillWebDataServiceImpl(service));
} else {
- return scoped_ptr<AutofillWebDataService>(NULL);
+ return scoped_refptr<AutofillWebDataService>(NULL);
}
}
« no previous file with comments | « chrome/browser/webdata/web_data_service_base.cc ('k') | chrome/browser/webdata/web_data_service_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698