Commit 6ffda7c9 authored by Robert Liao's avatar Robert Liao Committed by Commit Bot

Move IncognitoModePrefs Initialization to the COM STA Task Runner

BUG=706512

Change-Id: I185278d5230b00dc6b8b9c3a8712ae016b7d44f3
Reviewed-on: https://chromium-review.googlesource.com/572190
Commit-Queue: Gabriel Charette <gab@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486951}
parent 0e738ae9
...@@ -194,12 +194,10 @@ bool IncognitoModePrefs::CanOpenBrowser(Profile* profile) { ...@@ -194,12 +194,10 @@ bool IncognitoModePrefs::CanOpenBrowser(Profile* profile) {
#if defined(OS_WIN) #if defined(OS_WIN)
// static // static
void IncognitoModePrefs::InitializePlatformParentalControls() { void IncognitoModePrefs::InitializePlatformParentalControls() {
// TODO(fdoray): This task uses COM. Add the WithCom() trait once supported. base::CreateCOMSTATaskRunnerWithTraits(
// crbug.com/662122 {base::MayBlock(), base::TaskPriority::USER_VISIBLE})
base::PostTaskWithTraits( ->PostTask(FROM_HERE, base::Bind(base::IgnoreResult(
FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE}, &PlatformParentalControlsValue::GetInstance)));
base::Bind(
base::IgnoreResult(&PlatformParentalControlsValue::GetInstance)));
} }
#endif #endif
......
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