Chiefs of police are urging Massachusetts lawmakers to restore a provision to a gun bill that they say could keep rifles out of the hands of dangerous people.