| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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/settings/chromeos/note_handler.h" |
| 6 |
| 7 #include "ash/common/ash_switches.h" |
| 8 #include "base/command_line.h" |
| 9 #include "content/public/browser/web_ui_data_source.h" |
| 10 |
| 11 namespace chromeos { |
| 12 namespace settings { |
| 13 |
| 14 namespace { |
| 15 |
| 16 bool IsPaletteEnabled() { |
| 17 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 18 ash::switches::kAshEnablePalette); |
| 19 } |
| 20 |
| 21 } // namespace |
| 22 |
| 23 NoteHandler::NoteHandler(content::WebUIDataSource* html_source) { |
| 24 html_source->AddBoolean("noteAllowed", IsPaletteEnabled()); |
| 25 } |
| 26 |
| 27 NoteHandler::~NoteHandler() {} |
| 28 |
| 29 void NoteHandler::RegisterMessages() {} |
| 30 |
| 31 void NoteHandler::OnJavascriptAllowed() {} |
| 32 |
| 33 void NoteHandler::OnJavascriptDisallowed() {} |
| 34 |
| 35 } // namespace settings |
| 36 } // namespace chromeos |
| OLD | NEW |