Kyle Long, 33, had three baseball bats in the trunk of his car when he was arrested, police said.
Mountain View police received warnings from two other police departments that Long could be planning to attack employees of the tech company, public information officer Katie Nelson said.
“The police department in Maine had received information that not only was Kyle in California but that he had said that if things didn’t go his way at Google, he was potentially going to harm some people, and so that really put us on a heightened alert,” Nelson said.
Long was reportedly angry with Google because his YouTube channel had been shut down and he planned to question executives about that decision.
Long has been charged with making criminal threats.