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/chromeos/help_overlay_handler.h" | |
6 | |
7 #include "base/basictypes.h" | |
8 #include "base/values.h" | |
9 #include "chrome/browser/ui/webui/help/help_handler.h" | |
10 #include "chrome/common/chrome_switches.h" | |
11 #include "content/public/browser/web_ui.h" | |
12 | |
13 namespace chromeos { | |
14 namespace options { | |
15 | |
16 HelpOverlayHandler::HelpOverlayHandler() { | |
17 } | |
18 | |
19 HelpOverlayHandler::~HelpOverlayHandler() { | |
20 } | |
21 | |
22 void HelpOverlayHandler::GetLocalizedValues( | |
23 base::DictionaryValue* localized_strings) { | |
24 HelpHandler::GetLocalizedValues(localized_strings); | |
25 } | |
26 | |
27 void HelpOverlayHandler::RegisterMessages() { | |
28 if (!::switches::SettingsWindowEnabled()) | |
Dan Beam
2014/08/06 18:30:54
why are we getting here without SettingWindowEnabl
michaelpg
2014/08/06 21:58:18
This will be the next CL, but to answer your quest
| |
29 return; | |
30 HelpHandler* help_handler = new HelpHandler(); | |
31 web_ui()->AddMessageHandler(help_handler); | |
Dan Beam
2014/08/06 18:30:54
if (::switches::SettingsWindowEnabled())
web_ui(
| |
32 } | |
33 | |
34 } // namespace options | |
35 } // namespace chromeos | |
OLD | NEW |