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

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

Issue 302793002: Configure DomDistiller debug output. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 6 years, 7 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
« no previous file with comments | « no previous file | components/dom_distiller/standalone/content_extractor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 92ae35ceec86b812e3007f05474a3b72f5d6441a..acee37daae9c40daa5416fad3168d9d34a1ca17b 100644
--- a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
+++ b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
@@ -62,9 +62,15 @@ KeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor(
new DistillerPageWebContentsFactory(profile));
scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory(
new DistillerURLFetcherFactory(profile->GetRequestContext()));
+
+ dom_distiller::proto::DomDistillerOptions options;
+ if (VLOG_IS_ON(1)) {
+ options.set_debug_level(
+ logging::GetVlogLevelHelper(FROM_HERE.file_name(),
+ ::strlen(FROM_HERE.file_name())));
+ }
scoped_ptr<DistillerFactory> distiller_factory(
- new DistillerFactoryImpl(distiller_url_fetcher_factory.Pass(),
- dom_distiller::proto::DomDistillerOptions()));
+ new DistillerFactoryImpl(distiller_url_fetcher_factory.Pass(), options));
DomDistillerContextKeyedService* service =
new DomDistillerContextKeyedService(
« no previous file with comments | « no previous file | components/dom_distiller/standalone/content_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698