Commit 2e4602df authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

[base] Migrate away from implicit base::PostTask in //ios

base::PostTask with no traits implicitly posted to base::ThreadPool so
this CL is a no-op.

This change is blocking https://chromium-review.googlesource.com/c/chromium/src/+/2225541

Bug: 968047, 1026641
Change-Id: I0656db21fbe55f6c4d79643ff5605380047d46b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2229004Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774706}
parent c8479a41
......@@ -6,7 +6,7 @@
#include "base/compiler_specific.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/post_task.h"
#include "base/task/thread_pool.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/chrome_url_constants.h"
#import "ios/chrome/browser/main/browser.h"
......@@ -35,7 +35,7 @@ namespace {
void StartLeakingMemory() {
int* leak = new int[10 * 1024 * 1024];
ALLOW_UNUSED_LOCAL(leak);
base::PostTask(FROM_HERE, base::BindOnce(&StartLeakingMemory));
base::ThreadPool::PostTask(FROM_HERE, base::BindOnce(&StartLeakingMemory));
}
// Helper method for inducing intentional freezes, leaks and crashes, in a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment