

No, that’s not how it works, the cops have nothing to do with it. You tell your defense attorney that you were watching youtube, your attorney tells the judge you need those records from google, the judge’s court sends a warrant to google inc., then google sends those records to the court.
OP didn’t ask what you seem to think they asked