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

Use IsIndependentOffTheRecordProfile() in Browser destruction.

Just to improve readability, no behavioral change.

Bug: 968028
Change-Id: I0801440b45f0c4bf59c01956658f05ca5f6a5398
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1660664
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669705}
parent 472336af
......@@ -572,8 +572,7 @@ Browser::~Browser() {
// destroyed directly by Browser (e.g. for offscreen tabs,
// https://crbug.com/664351).
if (profile_->IsOffTheRecord() &&
profile_->GetOriginalProfile()->HasOffTheRecordProfile() &&
profile_->GetOriginalProfile()->GetOffTheRecordProfile() == profile_ &&
!profile_->IsIndependentOffTheRecordProfile() &&
!BrowserList::IsIncognitoSessionInUse(profile_) &&
!profile_->GetOriginalProfile()->IsSystemProfile()) {
if (profile_->IsGuestSession()) {
......
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