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

Unified Diff: chrome/browser/extensions/api/input/input.cc

Issue 219503003: Make keyboard controller a singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/input/input.cc
diff --git a/chrome/browser/extensions/api/input/input.cc b/chrome/browser/extensions/api/input/input.cc
index fcc5c7ec3e2b34b7d8db8f33153c81c2e7e0fa3b..311ef1afd8dd9326aaf6415e157943a93c4e6704 100644
--- a/chrome/browser/extensions/api/input/input.cc
+++ b/chrome/browser/extensions/api/input/input.cc
@@ -111,7 +111,7 @@ bool VirtualKeyboardPrivateHideKeyboardFunction::RunImpl() {
// Pass HIDE_REASON_MANUAL since calls to HideKeyboard as part of this API
// would be user generated.
- ash::Shell::GetInstance()->keyboard_controller()->HideKeyboard(
+ keyboard::KeyboardController::GetInstance()->HideKeyboard(
keyboard::KeyboardController::HIDE_REASON_MANUAL);
return true;
@@ -126,7 +126,7 @@ bool VirtualKeyboardPrivateLockKeyboardFunction::RunImpl() {
#if defined(USE_ASH)
bool lock;
EXTENSION_FUNCTION_VALIDATE(args_->GetBoolean(0, &lock));
- ash::Shell::GetInstance()->keyboard_controller()->set_lock_keyboard(lock);
+ keyboard::KeyboardController::GetInstance()->set_lock_keyboard(lock);
return true;
#else
error_ = kNotYetImplementedError;

Powered by Google App Engine
This is Rietveld 408576698