Commit 72f723e7 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update OTR profile usage in TTS Engine.

Profile API is being updated (issue 1033903) and the usage of
GetOffTheRecordProfile and HasOffTheRecordProfile without argument is
getting deprecated. Use cases of this call that ONLY refer to incognito
or guest mode can use [Get/Has]PrimaryOTRProfile() instead.

Use cases of these functions in TTS Engine are updated to use the new
APIs.

This CL does not change any behavior.

Bug: 1060940
Change-Id: I8b5c3c4386e8d5c82172a5d34e0c4dc25b40257f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388124Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803858}
parent 789213be
...@@ -58,8 +58,8 @@ void UpdateGoogleSpeechSynthesisKeepAliveCount(content::BrowserContext* context, ...@@ -58,8 +58,8 @@ void UpdateGoogleSpeechSynthesisKeepAliveCount(content::BrowserContext* context,
return; return;
UpdateGoogleSpeechSynthesisKeepAliveCountHelper( UpdateGoogleSpeechSynthesisKeepAliveCountHelper(
profile->HasOffTheRecordProfile() ? profile->GetOffTheRecordProfile() profile->HasPrimaryOTRProfile() ? profile->GetPrimaryOTRProfile()
: profile, : profile,
increment); increment);
} }
......
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