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

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

Issue 151003006: Add support for distilling arbitrary URLs in DOM Distiller Viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added new strings to iOS whitelist Created 6 years, 10 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_ui.cc
diff --git a/components/dom_distiller/webui/dom_distiller_ui.cc b/components/dom_distiller/webui/dom_distiller_ui.cc
index 4e3550c11a2c86e268fce9b6c81e05f7f32f7f46..a9a6a0d983ac4a7adab46d261750d49cb2c915cd 100644
--- a/components/dom_distiller/webui/dom_distiller_ui.cc
+++ b/components/dom_distiller/webui/dom_distiller_ui.cc
@@ -26,22 +26,25 @@ DomDistillerUi::DomDistillerUi(content::WebUI* web_ui,
source->SetDefaultResource(IDR_ABOUT_DOM_DISTILLER_HTML);
source->AddResourcePath("about_dom_distiller.css",
IDR_ABOUT_DOM_DISTILLER_CSS);
- source->AddResourcePath("about_dom_distiller.js",
- IDR_ABOUT_DOM_DISTILLER_JS);
+ source->AddResourcePath("about_dom_distiller.js", IDR_ABOUT_DOM_DISTILLER_JS);
source->SetUseJsonJSFormatV2();
source->AddLocalizedString("domDistillerTitle",
- IDS_DOM_DISTILLER_WEBUI_TITLE);
+ IDS_DOM_DISTILLER_WEBUI_TITLE);
source->AddLocalizedString("addArticleUrl",
- IDS_DOM_DISTILLER_WEBUI_ENTRY_URL);
+ IDS_DOM_DISTILLER_WEBUI_ENTRY_URL);
source->AddLocalizedString("addArticleAddButtonLabel",
- IDS_DOM_DISTILLER_WEBUI_ENTRY_ADD);
+ IDS_DOM_DISTILLER_WEBUI_ENTRY_ADD);
source->AddLocalizedString("addArticleFailedLabel",
- IDS_DOM_DISTILLER_WEBUI_ENTRY_ADD_FAILED);
+ IDS_DOM_DISTILLER_WEBUI_ENTRY_ADD_FAILED);
+ source->AddLocalizedString("viewUrlButtonLabel",
+ IDS_DOM_DISTILLER_WEBUI_VIEW_URL);
+ source->AddLocalizedString("viewUrlFailedLabel",
+ IDS_DOM_DISTILLER_WEBUI_VIEW_URL_FAILED);
source->AddLocalizedString("loadingEntries",
- IDS_DOM_DISTILLER_WEBUI_FETCHING_ENTRIES);
+ IDS_DOM_DISTILLER_WEBUI_FETCHING_ENTRIES);
source->AddLocalizedString("refreshButtonLabel",
- IDS_DOM_DISTILLER_WEBUI_REFRESH);
+ IDS_DOM_DISTILLER_WEBUI_REFRESH);
content::BrowserContext* browser_context =
web_ui->GetWebContents()->GetBrowserContext();

Powered by Google App Engine
This is Rietveld 408576698