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

Update OTR profile use in ProfileState.

OTR profile API is updated in ProfileState.

This CL does not result in any behavior change.

Bug: 1060940
Change-Id: Ib1550147ecf9662c02265c55302f75cd489227d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2212273
Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
Auto-Submit: Ramin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771740}
parent b6e57d42
......@@ -227,7 +227,7 @@ void RemoveBrowsingDataForProfile(const base::FilePath& profile_path) {
// For guest profiles the browsing data is in the OTR profile.
if (profile->IsGuestSession())
profile = profile->GetOffTheRecordProfile();
profile = profile->GetPrimaryOTRProfile();
profile->Wipe();
}
......
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