Commit ef27e3b9 authored by Aran Gilman's avatar Aran Gilman Committed by Commit Bot

Run clang-format on chrome/browser/dom_distiller.

Change-Id: I99aab3b42cc7d09fbcaabe6ab0cc41739c1bd556
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1526438Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Commit-Queue: Aran Gilman <gilmanmh@google.com>
Cr-Commit-Position: refs/heads/master@{#646604}
parent 5340139a
...@@ -20,13 +20,11 @@ LazyDomDistillerService::LazyDomDistillerService( ...@@ -20,13 +20,11 @@ LazyDomDistillerService::LazyDomDistillerService(
Profile* profile, Profile* profile,
const DomDistillerServiceFactory* service_factory) const DomDistillerServiceFactory* service_factory)
: profile_(profile), service_factory_(service_factory) { : profile_(profile), service_factory_(service_factory) {
registrar_.Add(this, registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED,
chrome::NOTIFICATION_PROFILE_DESTROYED,
content::Source<Profile>(profile)); content::Source<Profile>(profile));
} }
LazyDomDistillerService::~LazyDomDistillerService() { LazyDomDistillerService::~LazyDomDistillerService() {}
}
// This will create an object and schedule work the first time it's called // This will create an object and schedule work the first time it's called
// and just return an existing object after that. // and just return an existing object after that.
......
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
namespace { namespace {
using dom_distiller::ViewRequestDelegate;
using dom_distiller::DistilledArticleProto;
using dom_distiller::ArticleDistillationUpdate; using dom_distiller::ArticleDistillationUpdate;
using dom_distiller::ViewerHandle; using dom_distiller::DistilledArticleProto;
using dom_distiller::SourcePageHandleWebContents; using dom_distiller::DistillerPage;
using dom_distiller::DomDistillerService; using dom_distiller::DomDistillerService;
using dom_distiller::DomDistillerServiceFactory; using dom_distiller::DomDistillerServiceFactory;
using dom_distiller::DistillerPage;
using dom_distiller::SourcePageHandle; using dom_distiller::SourcePageHandle;
using dom_distiller::SourcePageHandleWebContents;
using dom_distiller::ViewerHandle;
using dom_distiller::ViewRequestDelegate;
// An no-op ViewRequestDelegate which holds a ViewerHandle and deletes itself // An no-op ViewRequestDelegate which holds a ViewerHandle and deletes itself
// after the WebContents navigates or goes away. This class is a band-aid to // after the WebContents navigates or goes away. This class is a band-aid to
...@@ -86,19 +86,15 @@ void SelfDeletingRequestDelegate::WebContentsDestroyed() { ...@@ -86,19 +86,15 @@ void SelfDeletingRequestDelegate::WebContentsDestroyed() {
SelfDeletingRequestDelegate::SelfDeletingRequestDelegate( SelfDeletingRequestDelegate::SelfDeletingRequestDelegate(
content::WebContents* web_contents) content::WebContents* web_contents)
: WebContentsObserver(web_contents) { : WebContentsObserver(web_contents) {}
}
SelfDeletingRequestDelegate::~SelfDeletingRequestDelegate() { SelfDeletingRequestDelegate::~SelfDeletingRequestDelegate() {}
}
void SelfDeletingRequestDelegate::OnArticleReady( void SelfDeletingRequestDelegate::OnArticleReady(
const DistilledArticleProto* article_proto) { const DistilledArticleProto* article_proto) {}
}
void SelfDeletingRequestDelegate::OnArticleUpdated( void SelfDeletingRequestDelegate::OnArticleUpdated(
ArticleDistillationUpdate article_update) { ArticleDistillationUpdate article_update) {}
}
void SelfDeletingRequestDelegate::TakeViewerHandle( void SelfDeletingRequestDelegate::TakeViewerHandle(
std::unique_ptr<ViewerHandle> viewer_handle) { std::unique_ptr<ViewerHandle> viewer_handle) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment