| 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 6202de7d7e4dd062fbafe251a8fe264e60cb3f99..ecec2195d891a4305e6f00bb26f87564065d26ef 100644
|
| --- a/components/dom_distiller/webui/dom_distiller_handler.cc
|
| +++ b/components/dom_distiller/webui/dom_distiller_handler.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/values.h"
|
| #include "components/dom_distiller/core/dom_distiller_service.h"
|
| #include "components/dom_distiller/core/proto/distilled_page.pb.h"
|
| +#include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_ui.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -51,7 +52,11 @@ void DomDistillerHandler::HandleSelectArticle(const ListValue* args) {
|
| std::string entry_id;
|
| args->GetString(0, &entry_id);
|
|
|
| - // TODO(nyquist): Do something here.
|
| + GURL url(article_scheme_ + std::string("://") + entry_id);
|
| + DCHECK(url.is_valid());
|
| + web_ui()->GetWebContents()->GetController().LoadURL(url,
|
| + content::Referrer(), content::PAGE_TRANSITION_GENERATED,
|
| + std::string());
|
| }
|
|
|
| void DomDistillerHandler::HandleRequestEntries(const ListValue* args) {
|
|
|