| 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 7a92ef93a1ec2968d32f475bca3934abdd16d174..1a790d5fd469eb8ae3cdf96ea953f4090e52344b 100644
|
| --- a/chrome/browser/permissions/permission_uma_util.cc
|
| +++ b/chrome/browser/permissions/permission_uma_util.cc
|
| @@ -555,9 +555,10 @@ void PermissionUmaUtil::PermissionPromptDeniedWithPersistenceToggle(
|
| }
|
|
|
| bool PermissionUmaUtil::IsOptedIntoPermissionActionReporting(Profile* profile) {
|
| - if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnablePermissionActionReporting))
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisablePermissionActionReporting)) {
|
| return false;
|
| + }
|
|
|
| DCHECK(profile);
|
| if (profile->GetProfileType() == Profile::INCOGNITO_PROFILE)
|
| @@ -568,7 +569,6 @@ bool PermissionUmaUtil::IsOptedIntoPermissionActionReporting(Profile* profile) {
|
| ProfileSyncService* profile_sync_service =
|
| ProfileSyncServiceFactory::GetForProfile(profile);
|
|
|
| -
|
| // Do not report if profile can't get a profile sync service or sync cannot
|
| // start.
|
| if (!(profile_sync_service && profile_sync_service->CanSyncStart()))
|
|
|