Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #include "chrome/browser/ui/webui/options/help_overlay_handler.h" | |
| 6 | |
| 7 #include "base/values.h" | |
| 8 #include "chrome/browser/ui/webui/help/help_handler.h" | |
| 9 #include "chrome/common/chrome_switches.h" | |
| 10 #include "content/public/browser/web_ui.h" | |
| 11 #include "grit/generated_resources.h" | |
| 12 | |
| 13 namespace options { | |
| 14 | |
| 15 HelpOverlayHandler::HelpOverlayHandler() { | |
| 16 } | |
| 17 | |
| 18 HelpOverlayHandler::~HelpOverlayHandler() { | |
| 19 } | |
| 20 | |
| 21 void HelpOverlayHandler::GetLocalizedValues( | |
| 22 base::DictionaryValue* localized_strings) { | |
| 23 RegisterTitle(localized_strings, "aboutOverlay", | |
| 24 IDS_ABOUT_TITLE); | |
|
Dan Beam
2014/08/07 22:36:16
RegisterTitle(localized_strings, "aboutOverlay", I
michaelpg
2014/08/08 01:10:46
Done.
| |
| 25 HelpHandler::GetLocalizedValues(localized_strings); | |
| 26 } | |
| 27 | |
| 28 void HelpOverlayHandler::RegisterMessages() { | |
| 29 if (::switches::AboutInSettingsEnabled()) | |
| 30 web_ui()->AddMessageHandler(new HelpHandler()); | |
| 31 } | |
| 32 | |
| 33 } // namespace options | |
| OLD | NEW |