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..722d71a8d2a985bd783f28a3171dd6206149a191 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->GetAllowedInputMethods().empty() |
+ ? base::string16() |
+ : l10n_util::GetStringUTF16(IDS_OPTIONS_CONTROLLED_SETTING_POLICY); |
+} |
+ |
void SystemTrayDelegateChromeOS::SwitchIME(const std::string& ime_id) { |
input_method::InputMethodManager::Get() |
->GetActiveIMEState() |