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

Unified Diff: components/dom_distiller/webui/dom_distiller_handler.cc

Issue 2352853002: Disallow redundant Bind calls. (Closed)
Patch Set: static_assert message tweak Created 4 years, 3 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: components/dom_distiller/webui/dom_distiller_handler.cc
diff --git a/components/dom_distiller/webui/dom_distiller_handler.cc b/components/dom_distiller/webui/dom_distiller_handler.cc
index 9d8970b6631ffd9df3511220d2662ef5a25a25f4..71f741a10ad5e2a7086a0c5656a66e30f656af5f 100644
--- a/components/dom_distiller/webui/dom_distiller_handler.cc
+++ b/components/dom_distiller/webui/dom_distiller_handler.cc
@@ -65,11 +65,10 @@ void DomDistillerHandler::HandleAddArticle(const base::ListValue* args) {
GURL gurl(url);
if (gurl.is_valid()) {
service_->AddToList(
- gurl,
- service_->CreateDefaultDistillerPage(
- web_ui()->GetWebContents()->GetContainerBounds().size()),
- base::Bind(base::Bind(&DomDistillerHandler::OnArticleAdded,
- base::Unretained(this))));
+ gurl, service_->CreateDefaultDistillerPage(
+ web_ui()->GetWebContents()->GetContainerBounds().size()),
+ base::Bind(&DomDistillerHandler::OnArticleAdded,
+ base::Unretained(this)));
} else {
web_ui()->CallJavascriptFunctionUnsafe("domDistiller.onArticleAddFailed");
}

Powered by Google App Engine
This is Rietveld 408576698