Commit 30774113 authored by Istiaque Ahmed's avatar Istiaque Ahmed Committed by Commit Bot

[Extensions Cleanup]: Use base::DoNothing() in extension_registrar.cc

Bug: None
Change-Id: Idf29937d34e7709957b483a6f25754eb9bf68cdb
Reviewed-on: https://chromium-review.googlesource.com/c/1263558Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596959}
parent 71098fe5
......@@ -28,13 +28,6 @@ using content::DevToolsAgentHost;
namespace extensions {
namespace {
// For binding.
void DoNothingWithExtensionHost(ExtensionHost* host) {}
} // namespace
ExtensionRegistrar::ExtensionRegistrar(content::BrowserContext* browser_context,
Delegate* delegate)
: browser_context_(browser_context),
......@@ -530,8 +523,7 @@ void ExtensionRegistrar::MaybeSpinUpLazyBackgroundPage(
// Wake up the event page by posting a dummy task.
LazyBackgroundTaskQueue* queue =
LazyBackgroundTaskQueue::Get(browser_context_);
queue->AddPendingTask(browser_context_, extension->id(),
base::BindOnce(&DoNothingWithExtensionHost));
queue->AddPendingTask(browser_context_, extension->id(), base::DoNothing());
}
} // namespace extensions
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