Commit dee787e4 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update OTR Profile API in Window AppleScript.

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.

This CL does not change any behavior and is just code clean up.

Bug: 1060940
Change-Id: Ie155364573e060093d3fb67bd2a163467346fe49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2388283Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803921}
parent 5ac5483e
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
Profile* profile; Profile* profile;
if ([mode isEqualToString:AppleScript::kIncognitoWindowMode]) { if ([mode isEqualToString:AppleScript::kIncognitoWindowMode]) {
profile = lastProfile->GetOffTheRecordProfile(); profile = lastProfile->GetPrimaryOTRProfile();
} }
else if ([mode isEqualToString:AppleScript::kNormalWindowMode] || !mode) { else if ([mode isEqualToString:AppleScript::kNormalWindowMode] || !mode) {
profile = lastProfile; profile = lastProfile;
......
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