| 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 847072a877dcb433c058daa86821e4dd00217ab8..2e2772b08f5308aa932953d2cf6c091efa5c498e 100644
|
| --- a/chrome/browser/extensions/api/input/input.cc
|
| +++ b/chrome/browser/extensions/api/input/input.cc
|
| @@ -8,6 +8,9 @@
|
| #include "base/lazy_instance.h"
|
| #include "base/metrics/histogram.h"
|
| #include "base/strings/string16.h"
|
| +#include "chrome/browser/profiles/profile_manager.h"
|
| +#include "chrome/browser/ui/chrome_pages.h"
|
| +#include "chrome/common/url_constants.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/user_metrics.h"
|
| #include "extensions/browser/extension_function_registry.h"
|
| @@ -162,6 +165,19 @@ bool VirtualKeyboardPrivateGetKeyboardConfigFunction::RunSync() {
|
| #endif
|
| }
|
|
|
| +bool VirtualKeyboardPrivateOpenSettingsFunction::RunSync() {
|
| + DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| +#if defined(USE_ASH)
|
| + content::RecordAction(base::UserMetricsAction("OpenLanguageOptionsDialog"));
|
| + chrome::ShowSettingsSubPageForProfile(
|
| + ProfileManager::GetActiveUserProfile(), chrome::kLanguageOptionsSubPage);
|
| + return true;
|
| +#else
|
| + error_ = kNotYetImplementedError;
|
| + return false;
|
| +#endif
|
| +}
|
| +
|
| InputAPI::InputAPI(content::BrowserContext* context) {}
|
|
|
| InputAPI::~InputAPI() {
|
|
|