Created
October 15, 2013 17:28
-
-
Save tommynyquist/6995321 to your computer and use it in GitHub Desktop.
DomDistillerServiceFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BrowserContextKeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor( | |
content::BrowserContext* profile) const { | |
scoped_refptr<base::SequencedTaskRunner> background_task_runner = | |
content::BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( | |
content::BrowserThread::GetBlockingPool()->GetSequenceToken()); | |
scoped_ptr<DomDistillerDatabase> db(new DomDistillerDatabase(background_task_runner)); | |
base::FilePath database_dir(FILE_PATH_LITERAL("/data/local/tmp/myreadinglist")); | |
scoped_ptr<DomDistillerStore> dom_distiller_store( | |
new DomDistillerStore(db.PassAs<DomDistillerDatabaseInterface>(), database_dir)); | |
scoped_ptr<DistillerFactory> distiller_factory; | |
return new DomDistillerContextKeyedService(dom_distiller_store.PassAs<DomDistillerStoreInterface>(), | |
distiller_factory.Pass()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment