1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/options/help_overlay_handler.h"
7 #include "base/values.h"
8 #include "chrome/browser/ui/webui/help/help_handler.h"
9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/grit/generated_resources.h"
11 #include "content/public/browser/web_ui.h"
15 HelpOverlayHandler::HelpOverlayHandler() {
18 HelpOverlayHandler::~HelpOverlayHandler() {
21 void HelpOverlayHandler::GetLocalizedValues(
22 base::DictionaryValue
* localized_strings
) {
23 RegisterTitle(localized_strings
, "aboutOverlay", IDS_ABOUT_TITLE
);
24 HelpHandler::GetLocalizedValues(localized_strings
);
27 void HelpOverlayHandler::RegisterMessages() {
28 if (::switches::AboutInSettingsEnabled())
29 web_ui()->AddMessageHandler(new HelpHandler());
32 } // namespace options