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

Unified Diff: chrome/browser/ui/webui/options/handler_options_handler.cc

Issue 215273002: options: add a learn more link to "Handlers" content settings dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « chrome/browser/resources/options/handler_options.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/handler_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/handler_options_handler.cc b/chrome/browser/ui/webui/options/handler_options_handler.cc
index bb76b44465868ca22f1945acc91a150ee5ce412c..4c8dfc7c6dbaded94678bd8580e7d2d34468ede5 100644
--- a/chrome/browser/ui/webui/options/handler_options_handler.cc
+++ b/chrome/browser/ui/webui/options/handler_options_handler.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
+#include "chrome/browser/google/google_util.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/web_ui.h"
#include "grit/generated_resources.h"
@@ -20,6 +21,13 @@
namespace options {
+namespace {
+
+const char kHandlersLearnMoreUrl[] =
+ "https://support.google.com/chromebook/answer/1382847";
+
+} // namespace
+
HandlerOptionsHandler::HandlerOptionsHandler() {
}
@@ -44,6 +52,10 @@ void HandlerOptionsHandler::GetLocalizedValues(
RegisterTitle(localized_strings, "handlersPage",
IDS_HANDLER_OPTIONS_WINDOW_TITLE);
RegisterStrings(localized_strings, resources, arraysize(resources));
+
+ localized_strings->SetString(
+ "handlers_learn_more_url",
+ google_util::StringAppendGoogleLocaleParam(kHandlersLearnMoreUrl));
}
void HandlerOptionsHandler::InitializeHandler() {
« no previous file with comments | « chrome/browser/resources/options/handler_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698