Index: shell/android/mojo_main.cc |
diff --git a/shell/android/mojo_main.cc b/shell/android/mojo_main.cc |
index 502a34063aca5419a4133649e668ee91bfb3a66f..9c8178b10073afbd692f3136ef93f17c8bbc9f3e 100644 |
--- a/shell/android/mojo_main.cc |
+++ b/shell/android/mojo_main.cc |
@@ -83,6 +83,10 @@ void ConfigureAndroidServices(Context* context) { |
make_scoped_ptr(new AndroidHandlerLoader()), "android_handler", |
base::MessageLoop::TYPE_DEFAULT)), |
GURL("mojo:android_handler")); |
+ |
+ // By default, the keyboard is handled by the native_viewport_service. |
+ context->mojo_url_resolver()->AddCustomMapping( |
+ GURL("mojo:keyboard"), GURL("mojo:native_viewport_service")); |
} |
void QuitShellThread() { |