Update OffTheRecord profile API in net tests.
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. c/b/net tests are updated to use the new API, and a test is expanded to cover non-primary OTRs. Bug: 1060940 Change-Id: I7962466b337c053c912a617e827af8008639fb69 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211345 Commit-Queue: Zhongyi Shi <zhongyi@chromium.org> Reviewed-by:Zhongyi Shi <zhongyi@chromium.org> Auto-Submit: Ramin Halavati <rhalavati@chromium.org> Cr-Commit-Position: refs/heads/master@{#772463}
Showing
Please register or sign in to comment