| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h" | 5 #include "ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <time.h> | 8 #include <time.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 std::string touch_evdev_log_filename = GenerateEventLogName( | 227 std::string touch_evdev_log_filename = GenerateEventLogName( |
| 228 out_dir, "evdev_input_events_", now, converter->id()); | 228 out_dir, "evdev_input_events_", now, converter->id()); |
| 229 base::Move(base::FilePath(kInputEventsLogFile), | 229 base::Move(base::FilePath(kInputEventsLogFile), |
| 230 base::FilePath(touch_evdev_log_filename)); | 230 base::FilePath(touch_evdev_log_filename)); |
| 231 log_paths->push_back(base::FilePath(touch_evdev_log_filename)); | 231 log_paths->push_back(base::FilePath(touch_evdev_log_filename)); |
| 232 } | 232 } |
| 233 } | 233 } |
| 234 | 234 |
| 235 // Compress touchpad/mouse logs asynchronously | 235 // Compress touchpad/mouse logs asynchronously |
| 236 base::PostTaskWithTraitsAndReply( | 236 base::PostTaskWithTraitsAndReply( |
| 237 FROM_HERE, base::TaskTraits() | 237 FROM_HERE, |
| 238 .WithShutdownBehavior( | 238 {base::MayBlock(), base::TaskPriority::BACKGROUND, |
| 239 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) | 239 base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}, |
| 240 .WithPriority(base::TaskPriority::BACKGROUND) | |
| 241 .MayBlock(), | |
| 242 base::Bind(&CompressDumpedLog, base::Passed(&log_paths_to_be_compressed)), | 240 base::Bind(&CompressDumpedLog, base::Passed(&log_paths_to_be_compressed)), |
| 243 base::Bind(reply, base::Passed(&log_paths))); | 241 base::Bind(reply, base::Passed(&log_paths))); |
| 244 } | 242 } |
| 245 | 243 |
| 246 } // namespace ui | 244 } // namespace ui |
| OLD | NEW |