Commit 5b91d931 authored by Ramin Halavati's avatar Ramin Halavati Committed by Commit Bot

Replace IsIncognitoProfile with IsOffTheRecord in enterprise reporting.

ReportScheduler and ExtensionRequestObserverFactory use
IsIncognitoProfile() to prevent OffTheRecord profiles in two contexts.

IsIncognitoProfile() currently covers all non-guest off-the-record
profiles, but this will be soon changed to only incognito profiles.

So to keep the functionality as it is, IsIncognitoProfile() is replaced
with IsOffTheRecord().

This CL does not create any behavioral change now, and is to prevent
change when IsIncognitoProfile() is updated.

Bug: 1074201
Change-Id: I71dba6f52195df7b12a2ae7df984ce5dc374ed3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211343
Commit-Queue: Owen Min <zmin@chromium.org>
Auto-Submit: Ramin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarOwen Min <zmin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771023}
parent a7044687
...@@ -31,7 +31,7 @@ ExtensionRequestObserverFactory::~ExtensionRequestObserverFactory() { ...@@ -31,7 +31,7 @@ ExtensionRequestObserverFactory::~ExtensionRequestObserverFactory() {
void ExtensionRequestObserverFactory::OnProfileAdded(Profile* profile) { void ExtensionRequestObserverFactory::OnProfileAdded(Profile* profile) {
if (profile->IsSystemProfile() || profile->IsGuestSession() || if (profile->IsSystemProfile() || profile->IsGuestSession() ||
profile->IsIncognitoProfile()) { profile->IsOffTheRecord()) {
return; return;
} }
......
...@@ -334,7 +334,7 @@ void ReportScheduler::RecordUploadTrigger(ReportTrigger trigger) { ...@@ -334,7 +334,7 @@ void ReportScheduler::RecordUploadTrigger(ReportTrigger trigger) {
void ReportScheduler::OnProfileAdded(Profile* profile) { void ReportScheduler::OnProfileAdded(Profile* profile) {
if (profile->IsSystemProfile() || profile->IsGuestSession() || if (profile->IsSystemProfile() || profile->IsGuestSession() ||
profile->IsIncognitoProfile()) { profile->IsOffTheRecord()) {
return; return;
} }
DCHECK(stale_profiles_); DCHECK(stale_profiles_);
......
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