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

Unified Diff: components/dom_distiller/content/distiller_page_web_contents.cc

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indent fixes (full git cl format) Created 6 years, 8 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/content/distiller_page_web_contents.cc
diff --git a/components/dom_distiller/content/distiller_page_web_contents.cc b/components/dom_distiller/content/distiller_page_web_contents.cc
index 81bc2e7f6f65449847ca59f5d3927f64e64fe09f..baa9977a9f167f2f27d7cdd1c0c004f69af8b68a 100644
--- a/components/dom_distiller/content/distiller_page_web_contents.cc
+++ b/components/dom_distiller/content/distiller_page_web_contents.cc
@@ -31,7 +31,7 @@ DistillerPageWebContents::DistillerPageWebContents(
DistillerPageWebContents::~DistillerPageWebContents() {}
-void DistillerPageWebContents::DistillPageImpl(const GURL& gurl,
+void DistillerPageWebContents::DistillPageImpl(const GURL& url,
const std::string& script) {
DCHECK(browser_context_);
DCHECK(state_ == IDLE);
@@ -46,7 +46,7 @@ void DistillerPageWebContents::DistillPageImpl(const GURL& gurl,
// Start observing WebContents and load the requested URL.
content::WebContentsObserver::Observe(web_contents_.get());
- content::NavigationController::LoadURLParams params(gurl);
+ content::NavigationController::LoadURLParams params(url);
web_contents_->GetController().LoadURLWithParams(params);
}
« no previous file with comments | « components/dom_distiller/content/distiller_page_web_contents.h ('k') | components/dom_distiller/core/distiller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698