Under California Penal Code § 836, a peace officer can make a warrantless arrest for a misdemeanor under which of the following circumstances?