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

Unified Diff: chrome/browser/dom_distiller/dom_distiller_service_factory.cc

Issue 640353003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 2 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/dom_distiller/dom_distiller_service_factory.cc
diff --git a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
index 4de2b1755b579f70622e5687e305167b072d5673..9c4ea3e41c3963caae5bbc4e65fa5b75fe6a2856 100644
--- a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
+++ b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
@@ -63,8 +63,8 @@ KeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor(
base::FilePath database_dir(
profile->GetPath().Append(FILE_PATH_LITERAL("Articles")));
- scoped_ptr<DomDistillerStore> dom_distiller_store(new DomDistillerStore(
- db.PassAs<leveldb_proto::ProtoDatabase<ArticleEntry> >(), database_dir));
+ scoped_ptr<DomDistillerStore> dom_distiller_store(
+ new DomDistillerStore(db.Pass(), database_dir));
scoped_ptr<DistillerPageFactory> distiller_page_factory(
new DistillerPageWebContentsFactory(profile));
@@ -82,11 +82,10 @@ KeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor(
new DistilledPagePrefs(Profile::FromBrowserContext(profile)->GetPrefs()));
DomDistillerContextKeyedService* service =
- new DomDistillerContextKeyedService(
- dom_distiller_store.PassAs<DomDistillerStoreInterface>(),
- distiller_factory.Pass(),
- distiller_page_factory.Pass(),
- distilled_page_prefs.Pass());
+ new DomDistillerContextKeyedService(dom_distiller_store.Pass(),
+ distiller_factory.Pass(),
+ distiller_page_factory.Pass(),
+ distilled_page_prefs.Pass());
return service;
}
« no previous file with comments | « chrome/browser/devtools/browser_list_tabcontents_provider.cc ('k') | chrome/browser/dom_distiller/tab_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698