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

Unified Diff: chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc

Issue 2858073002: Use constexpr TaskTraits constructor in chrome. (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: chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc
diff --git a/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc b/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc
index f538d66278c6e8ff2ad04d90c396a2b575a58a0c..68f08f2e01af458df3c9af9238c318751b696f50 100644
--- a/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc
+++ b/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.cc
@@ -125,8 +125,7 @@ void ArcVoiceInteractionFrameworkService::CaptureFocusedWindow(
ui::GrabWindowSnapshotAsyncJPEG(
window, gfx::Rect(window->bounds().size()),
base::CreateTaskRunnerWithTraits(
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_BLOCKING)),
+ {base::MayBlock(), base::TaskPriority::USER_BLOCKING}),
base::Bind(&ScreenshotCallback, callback));
}
@@ -140,8 +139,7 @@ void ArcVoiceInteractionFrameworkService::CaptureFullscreen(
ui::GrabWindowSnapshotAsyncJPEG(
window, gfx::Rect(window->bounds().size()),
base::CreateTaskRunnerWithTraits(
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_BLOCKING)),
+ {base::MayBlock(), base::TaskPriority::USER_BLOCKING}),
base::Bind(&ScreenshotCallback, callback));
}

Powered by Google App Engine
This is Rietveld 408576698