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

Side by Side Diff: chrome/browser/ui/webui/settings/chromeos/note_handler.cc

Issue 2178213002: Add note page to settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-add-switch
Patch Set: Comments Created 4 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698