diff options
Diffstat (limited to 'chromium/extensions/browser/requirements_checker.cc')
-rw-r--r-- | chromium/extensions/browser/requirements_checker.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/extensions/browser/requirements_checker.cc b/chromium/extensions/browser/requirements_checker.cc index 4fa47ab3192..d2f307d4600 100644 --- a/chromium/extensions/browser/requirements_checker.cc +++ b/chromium/extensions/browser/requirements_checker.cc @@ -7,7 +7,6 @@ #include "base/bind.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" -#include "base/task/post_task.h" #include "build/build_config.h" #include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_thread.h" @@ -78,8 +77,8 @@ void RequirementsChecker::PostRunCallback() { // to maintain the assumption in // ExtensionService::LoadExtensionsFromCommandLineFlag(). Remove these helper // functions after crbug.com/708354 is addressed. - base::PostTask(FROM_HERE, {content::BrowserThread::UI}, - base::BindOnce(&RequirementsChecker::RunCallback, + content::GetUIThreadTaskRunner({})->PostTask( + FROM_HERE, base::BindOnce(&RequirementsChecker::RunCallback, weak_ptr_factory_.GetWeakPtr())); } |