Rename PERMISSION_STATUS enum value

This commit is contained in:
Brian R. Bondy 2016-04-26 23:07:11 -04:00 committed by Cheng Zhao
parent 270fc41024
commit f9dfa5466d

View file

@ -27,7 +27,7 @@ int PermissionManager::RequestPermission(
content::ChildProcessSecurityPolicy::GetInstance()-> content::ChildProcessSecurityPolicy::GetInstance()->
GrantSendMidiSysExMessage(render_frame_host->GetProcess()->GetID()); GrantSendMidiSysExMessage(render_frame_host->GetProcess()->GetID());
} }
callback.Run(content::PERMISSION_STATUS_GRANTED); callback.Run(content::PermissionStatus::GRANTED);
return kNoPendingOperation; return kNoPendingOperation;
} }
@ -45,7 +45,7 @@ int PermissionManager::RequestPermissions(
GrantSendMidiSysExMessage(render_frame_host->GetProcess()->GetID()); GrantSendMidiSysExMessage(render_frame_host->GetProcess()->GetID());
} }
permissionStatuses.push_back(content::PERMISSION_STATUS_GRANTED); permissionStatuses.push_back(content::PermissionStatus::GRANTED);
} }
callback.Run(permissionStatuses); callback.Run(permissionStatuses);
@ -65,7 +65,7 @@ content::PermissionStatus PermissionManager::GetPermissionStatus(
content::PermissionType permission, content::PermissionType permission,
const GURL& requesting_origin, const GURL& requesting_origin,
const GURL& embedding_origin) { const GURL& embedding_origin) {
return content::PERMISSION_STATUS_GRANTED; return content::PermissionStatus::GRANTED;
} }
void PermissionManager::RegisterPermissionUsage( void PermissionManager::RegisterPermissionUsage(