I'd disagree. Another post shows stellar performance reviews, so if this is considered a mistake, it should be remedied and she should be reprimanded. Outright firing seems heavy handed
She might be naive enough to believe that this was actually protected concerted activity, but I don't think so. I'm not sure I think firing her was the right play, but I also don't have all the information. I will say that I don't think this outcome should surprise her. It should definitely been one of the likely outcomes she modeled when deciding to submit that code.
So if her goal was to cause disruption at Google, it sounds like management just gave her a major assist. Like a Falcon Heavy's worth of assist.
Also, FWIW, this may provide some interesting reading: https://www.hg.org/legal-articles/are-employers-required-to-...