Commit 812bd544 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Update type check in TrackZoomLevelsFromParent.

OffTheRecordProfileImpl::TrackZoomLevelsFromParent checks if the parent
profile type is not incognito, which can never be true since the parent
of an OTR is always regular.

The unnecessary DCHECK is removed.

Bug: 968028, 1074201
Change-Id: I274f4641f1452a3547f9337ca5026496a9520bd4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2203002Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Commit-Queue: Ramin Halavati <rhalavati@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770595}
parent 3cbe186f
...@@ -223,8 +223,6 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() { ...@@ -223,8 +223,6 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
#if !defined(OS_ANDROID) #if !defined(OS_ANDROID)
void OffTheRecordProfileImpl::TrackZoomLevelsFromParent() { void OffTheRecordProfileImpl::TrackZoomLevelsFromParent() {
DCHECK(!profile_->IsIncognitoProfile());
// Here we only want to use zoom levels stored in the main-context's default // Here we only want to use zoom levels stored in the main-context's default
// storage partition. We're not interested in zoom levels in special // storage partition. We're not interested in zoom levels in special
// partitions, e.g. those used by WebViewGuests. // partitions, e.g. those used by WebViewGuests.
......
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