Commit 020ed23e authored by Patrick Monette's avatar Patrick Monette Committed by Commit Bot

Stop using ModuleDatabase::GetInstance() for calling static method

ModuleDatabase::GetInstance() may only be called on
ModuleDatabase::GetTaskRunner(). DisableThirdPartyBlocking() is
a static method that can be called from any sequence which
internally calls GetInstance() on the correct sequence.

Bug: 1049211
Change-Id: Ie99d93eeaded2e8e90cb9ba1f99457b55b70a78e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2039772
Commit-Queue: Patrick Monette <pmonette@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738773}
parent 663c17de
......@@ -252,7 +252,7 @@ PrintPreviewDialogController* PrintPreviewDialogController::GetInstance() {
// static
void PrintPreviewDialogController::PrintPreview(WebContents* initiator) {
#if defined(OS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
ModuleDatabase::GetInstance()->DisableThirdPartyBlocking();
ModuleDatabase::DisableThirdPartyBlocking();
#endif
if (initiator->ShowingInterstitialPage() || initiator->IsCrashed())
......
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