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

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: Fix nits. 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 1a18af77519a518ad11056e7be7d6d5d7900efc0..f8db0cd8e2c998af864b31e2d62749736007058b 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