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

Unified Diff: third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp

Issue 2218933003: Revert of Make WebTraceLocation be an alias of tracked_objects::Location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
diff --git a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
index 7805e23c8e9c2f7d964d041c5be71a8f4f134cff..ae5b309f0985a5efde51455af3abc95f11c7e438 100644
--- a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
+++ b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
@@ -12,7 +12,8 @@
void BackgroundTaskRunner::postOnBackgroundThread(const WebTraceLocation& location, std::unique_ptr<CrossThreadClosure> closure, TaskSize taskSize)
{
- base::WorkerPool::PostTask(location, convertToBaseCallback(std::move(closure)), taskSize == TaskSizeLongRunningTask);
+ tracked_objects::Location baseLocation(location.functionName(), location.fileName(), 0, nullptr);
+ base::WorkerPool::PostTask(baseLocation, convertToBaseCallback(std::move(closure)), taskSize == TaskSizeLongRunningTask);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.h ('k') | third_party/WebKit/public/platform/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698