Chromium Code Reviews| 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 70324dd516908e38589b4eabab7780f1869396de..64de5807ecc93e68532c0a018ac6b142dca54e16 100644 |
| --- a/chrome/browser/permissions/permission_uma_util.cc |
| +++ b/chrome/browser/permissions/permission_uma_util.cc |
| @@ -299,10 +299,6 @@ 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) |
|
timvolodine
2016/07/20 18:19:58
should there be DCHECK(profile) now?
|
| - return false; |
| if (profile->GetProfileType() == Profile::INCOGNITO_PROFILE) |
| return false; |
| if (!profile->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled)) |