commit | afbec875c03ad5921f96d22efe07c3095ec37b64 | [log] [tgz] |
---|---|---|
author | Gabriel Charette <[email protected]> | Fri May 29 04:34:11 2020 |
committer | Commit Bot <[email protected]> | Fri May 29 04:34:11 2020 |
tree | 04749c8a4f8952bae1d9d0139b208524f9ef565c | |
parent | c5f3841160bc84d9ae911486bd282c6052e280b8 [diff] [blame] |
[base] Make PostTaskAndReply destination explicit in /components/omnibox Task APIs v3 will all have an explicit destination. In the past "default traits" meant ThreadPool. This CL is thus a no-op. These changes are required to phase out task APIs v2 (post_task.h) Design doc: https://docs.google.com/document/d/1tssusPykvx3g0gvbvU4HxGyn3MjJlIylnsH13-Tv6s4/edit This CL was uploaded by git cl split. [email protected] Bug: 1026641, 968047 Change-Id: Ifcaee2088907f0cc8347da2f6f37259585b3ac48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219015 Commit-Queue: Mark Pearson <[email protected]> Reviewed-by: Robbie Gibson <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Auto-Submit: Gabriel Charette <[email protected]> Cr-Commit-Position: refs/heads/master@{#773043}
diff --git a/components/omnibox/browser/clipboard_provider.cc b/components/omnibox/browser/clipboard_provider.cc index 8666375..0ca4b63 100644 --- a/components/omnibox/browser/clipboard_provider.cc +++ b/components/omnibox/browser/clipboard_provider.cc
@@ -20,7 +20,7 @@ #include "base/optional.h" #include "base/strings/utf_string_conversions.h" #include "base/task/post_task.h" -#include "base/task/task_traits.h" +#include "base/task/thread_pool.h" #include "build/build_config.h" #include "components/omnibox/browser/autocomplete_input.h" #include "components/omnibox/browser/autocomplete_match.h" @@ -372,7 +372,7 @@ if (!optional_image) return; done_ = false; - PostTaskAndReplyWithResult( + base::ThreadPool::PostTaskAndReplyWithResult( FROM_HERE, base::BindOnce(&ClipboardProvider::EncodeClipboardImage, optional_image.value()),