| Index: chrome/browser/extensions/extension_input_method_api.cc
|
| diff --git a/chrome/browser/extensions/extension_input_method_api.cc b/chrome/browser/extensions/extension_input_method_api.cc
|
| index cf2bbd294a7797e3dd785d0a8fb24fd7406cc315..904c292d055099c90f2ee6b98801489555921727 100644
|
| --- a/chrome/browser/extensions/extension_input_method_api.cc
|
| +++ b/chrome/browser/extensions/extension_input_method_api.cc
|
| @@ -10,12 +10,6 @@
|
| #include "chrome/browser/extensions/extension_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
|
|
| -namespace {
|
| -
|
| -const char kErrorInputMethodPrivateApi[] = "Input method API is private";
|
| -
|
| -} // namespace
|
| -
|
| GetInputMethodFunction::GetInputMethodFunction() {
|
| }
|
|
|
| @@ -24,15 +18,10 @@ GetInputMethodFunction::~GetInputMethodFunction() {
|
|
|
| bool GetInputMethodFunction::RunImpl() {
|
| #if !defined(OS_CHROMEOS)
|
| - error_ = kErrorInputMethodPrivateApi;
|
| - return false;
|
| + NOTREACHED();
|
| #else
|
| chromeos::ExtensionInputMethodEventRouter* router =
|
| profile_->GetExtensionService()->input_method_event_router();
|
| - if (!router->IsExtensionWhitelisted(extension_id())) {
|
| - error_ = kErrorInputMethodPrivateApi;
|
| - return false;
|
| - }
|
| chromeos::input_method::InputMethodManager* manager =
|
| chromeos::input_method::InputMethodManager::GetInstance();
|
| const std::string input_method =
|
|
|