Index: chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
index e80cd4d85b3dbe8b856c0dc98b3b2da7037f3148..811a88246dee7dd07e11aeb1aba708bb5cd9b756 100644 |
--- a/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
+++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc |
@@ -478,6 +478,13 @@ void SystemTrayDelegateChromeOS::GetCurrentIMEProperties( |
} |
} |
+base::string16 SystemTrayDelegateChromeOS::GetIMEManagedMessage() { |
+ auto ime_state = input_method::InputMethodManager::Get()->GetActiveIMEState(); |
+ return ime_state->GetAllowedKeyboardLayoutInputMethods().empty() |
+ ? base::string16() |
+ : l10n_util::GetStringUTF16(IDS_OPTIONS_CONTROLLED_SETTING_POLICY); |
+} |
+ |
void SystemTrayDelegateChromeOS::SwitchIME(const std::string& ime_id) { |
input_method::InputMethodManager::Get() |
->GetActiveIMEState() |