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

Unified Diff: ui/events/ozone/device/device_manager_manual.cc

Issue 2862673002: Use constexpr TaskTraits constructor in ui. (Closed)
Patch Set: Created 3 years, 8 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
Index: ui/events/ozone/device/device_manager_manual.cc
diff --git a/ui/events/ozone/device/device_manager_manual.cc b/ui/events/ozone/device/device_manager_manual.cc
index 9d13a107ad4168d60c37f9fa54d77e3d5b42ccff..c4a709923d56396249d2d0e9a55bfd3fadce8c21 100644
--- a/ui/events/ozone/device/device_manager_manual.cc
+++ b/ui/events/ozone/device/device_manager_manual.cc
@@ -64,10 +64,7 @@ void DeviceManagerManual::InitiateScanDevices() {
std::vector<base::FilePath>* result = new std::vector<base::FilePath>();
base::PostTaskWithTraitsAndReply(
FROM_HERE,
- base::TaskTraits()
- .WithShutdownBehavior(
- base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN)
- .MayBlock(),
+ {base::MayBlock(), base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
base::Bind(&ScanDevicesOnWorkerThread, result),
base::Bind(&DeviceManagerManual::OnDevicesScanned,
weak_ptr_factory_.GetWeakPtr(), base::Owned(result)));
« no previous file with comments | « ui/arc/notification/arc_notification_item.cc ('k') | ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698