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

Unified Diff: chrome/browser/chromeos/device_uma.cc

Issue 405683002: ui: Remove some unnecessary functions from the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | ui/events/cocoa/events_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/device_uma.cc
diff --git a/chrome/browser/chromeos/device_uma.cc b/chrome/browser/chromeos/device_uma.cc
index 41ec2d4912494cf6a8c65471a500818cdbd5d684..5afde22f69cf25e237d29792b887081643f10799 100644
--- a/chrome/browser/chromeos/device_uma.cc
+++ b/chrome/browser/chromeos/device_uma.cc
@@ -85,9 +85,12 @@ void DeviceUMA::CheckTouchpadEvent(XEvent* native_event) {
void DeviceUMA::CheckIncomingEvent(XEvent* event) {
switch (event->type) {
case GenericEvent: {
- if (ui::DeviceDataManagerX11::GetInstance()->IsXIDeviceEvent(event) &&
- ui::IsTouchpadEvent(event))
+ ui::DeviceDataManagerX11* devices =
+ ui::DeviceDataManagerX11::GetInstance();
+ if (devices->IsXIDeviceEvent(event) &&
+ devices->IsTouchpadXInputEvent(event)) {
CheckTouchpadEvent(event);
+ }
break;
}
default:
« no previous file with comments | « no previous file | ui/events/cocoa/events_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698