Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: ui/base/ime/input_method_chromeos.cc

Issue 2585633004: ozone: Allow ozone evdev/kvm features to be enabled without running on ChromeOS. (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/ime/DEPS ('k') | ui/display/manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_chromeos.cc
diff --git a/ui/base/ime/input_method_chromeos.cc b/ui/base/ime/input_method_chromeos.cc
index 27d0a5598f68cb4893efac1edac640bfa1cd7568..d867fb9905ffebb4000d35fd8e287d0741ce29d6 100644
--- a/ui/base/ime/input_method_chromeos.cc
+++ b/ui/base/ime/input_method_chromeos.cc
@@ -16,8 +16,8 @@
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
-#include "base/sys_info.h"
#include "base/third_party/icu/icu_utf.h"
+#include "chromeos/system/devicemode.h"
#include "ui/base/ime/chromeos/ime_keyboard.h"
#include "ui/base/ime/chromeos/input_method_manager.h"
#include "ui/base/ime/composition_text.h"
@@ -66,7 +66,7 @@ void InputMethodChromeOS::DispatchKeyEvent(
// For linux_chromeos, the ime keyboard cannot track the caps lock state by
// itself, so need to call SetCapsLockEnabled() method to reflect the caps
// lock state by the key event.
- if (!base::SysInfo::IsRunningOnChromeOS()) {
+ if (!chromeos::IsRunningAsSystemCompositor()) {
chromeos::input_method::InputMethodManager* manager =
chromeos::input_method::InputMethodManager::Get();
if (manager) {
« no previous file with comments | « ui/base/ime/DEPS ('k') | ui/display/manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698