Commit faf59c40 authored by dbeam@chromium.org's avatar dbeam@chromium.org

options: add a learn more link to "Handlers" content settings dialog.

R=markusheintz@chromium.org
BUG=356741

Review URL: https://codereview.chromium.org/215273002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260325 0039d316-1c4b-4281-b951-d872f2087c98
parent 3b3c6445
......@@ -29,10 +29,16 @@
</div>
</div>
<div class="action-area">
<div class="button-strip">
<button id="handler-options-overlay-confirm" class="default-button"
i18n-content="done">
</button>
<div class="hbox stretch">
<a target="_blank" i18n-content="learnMore"
i18n-values="href:handlers_learn_more_url"></a>
</div>
<div class="action-area-right">
<div class="button-strip">
<button id="handler-options-overlay-confirm" class="default-button"
i18n-content="done">
</button>
</div>
</div>
</div>
</div>
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment