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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/help_overlay_handler.cc

Issue 423533003: Use PageManager in About page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698