Index: chrome/browser/ui/ash/chrome_shell_delegate.cc |
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc |
index ec12655a2494b0b90fcb296d08467cd85424f1cc..06ab9cad354b845caf2316106fea12db63e3d2b3 100644 |
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc |
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc |
@@ -500,6 +500,11 @@ bool ChromeShellDelegate::IsSearchKeyActingAsFunctionKey() const { |
if (!chromebook_function_key) |
return false; |
+ bool chromeos_keyboard = CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kHasChromeOSKeyboard); |
+ if (!chromeos_keyboard) |
+ return false; |
+ |
Profile* profile = ProfileManager::GetDefaultProfile(); |
return profile->GetPrefs()->GetBoolean( |
prefs::kLanguageSearchKeyActsAsFunctionKey); |