Judge Stanton was the judge in the lawsuit Viacom Int'l, Inc.v. YouTube, Inc., in which Viacom sued YouTube alleging direct and indirect copyright infringement of Viacom's copyrighted works. In response to a formal motion to compel discovery, Judge Stanton ordered Google to provide Viacom with YouTube user data. This decision received criticism from the Electronic Frontier Foundation and privacy advocates. An attorney for the EFF has accused the court of "ignoring the protections of the federal Video Privacy Protection Act." Judge Stanton denied Viacom's motion to reveal the proprietary source code used for YouTube video searches, as well as the Viacom motion to compel Google to provide access to privately stored YouTube videos. Ultimately the companies agreed to anonymize all user data other than that of the defendants' and plaintiffs' employees. In 2010, and in 2013, Judge Stanton ruled in Google's favor in a motion for summary judgment.