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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_util.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
6 6
7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/ui/singleton_tabs.h" 8 #include "chrome/browser/ui/singleton_tabs.h"
10 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
11 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "components/prefs/pref_service.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 // TODO(yoshiki): move the following method to accessibility_manager.cc and 14 // TODO(yoshiki): move the following method to accessibility_manager.cc and
15 // remove this file. 15 // remove this file.
16 16
17 namespace chromeos { 17 namespace chromeos {
18 namespace accessibility { 18 namespace accessibility {
19 19
20 void EnableVirtualKeyboard(bool enabled) { 20 void EnableVirtualKeyboard(bool enabled) {
21 PrefService* pref_service = g_browser_process->local_state(); 21 PrefService* pref_service = g_browser_process->local_state();
(...skipping 11 matching lines...) Expand all
33 prefs && prefs->GetBoolean(prefs::kAccessibilityVirtualKeyboardEnabled); 33 prefs && prefs->GetBoolean(prefs::kAccessibilityVirtualKeyboardEnabled);
34 return virtual_keyboard_enabled; 34 return virtual_keyboard_enabled;
35 } 35 }
36 36
37 void ShowAccessibilityHelp(Browser* browser) { 37 void ShowAccessibilityHelp(Browser* browser) {
38 chrome::ShowSingletonTab(browser, GURL(chrome::kChromeAccessibilityHelpURL)); 38 chrome::ShowSingletonTab(browser, GURL(chrome::kChromeAccessibilityHelpURL));
39 } 39 }
40 40
41 } // namespace accessibility 41 } // namespace accessibility
42 } // namespace chromeos 42 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698