| Index: chrome/browser/permissions/permission_uma_util.cc
|
| diff --git a/chrome/browser/permissions/permission_uma_util.cc b/chrome/browser/permissions/permission_uma_util.cc
|
| index e73a17632e3bd15c207f511875ae0567143d52c3..66b61c041879fc803f0ae0baf9f708babed75130 100644
|
| --- a/chrome/browser/permissions/permission_uma_util.cc
|
| +++ b/chrome/browser/permissions/permission_uma_util.cc
|
| @@ -300,10 +300,8 @@ bool PermissionUmaUtil::IsOptedIntoPermissionActionReporting(Profile* profile) {
|
| if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnablePermissionActionReporting))
|
| return false;
|
| - // TODO(stefanocs): Remove this check once all callsites have been updated
|
| - // to not pass a nullptr.
|
| - if (!profile)
|
| - return false;
|
| +
|
| + DCHECK(profile);
|
| if (profile->GetProfileType() == Profile::INCOGNITO_PROFILE)
|
| return false;
|
| if (!profile->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled))
|
|
|