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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc

Issue 2862673002: Use constexpr TaskTraits constructor in ui. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/device/device_manager_manual.cc ('k') | ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698