NYC and Boston were handed huge setbacks this week when Amazon and GE decided to bail on their commitments to build headquarters in the respective cities on the same day. But it’s worth pointing out that while these large tech organizations were pulling out, Google was expanding in both locations.

Yesterday, upon hearing about Amazon’s decision to scrap its HQ2 plans in Long Island City, New York City Mayor de Blasio had this to say: “Instead of working with the community, Amazon threw away that opportunity. We have the best talent in the world and every day we are growing a stronger and fairer economy for everyone. If Amazon can’t recognize what that’s worth, its competitors will.” One of them already has. Google had already announced a billion-dollar expansion in Hudson Square at the end of last year.

In fact, the company is pouring billions into NYC real estate, with plans to double its 7,000-person workforce over the next 10 years. As TechCrunch’s Jon Russell reported, “Our investment in New York is a huge part of our commitment to grow and invest in U.S. facilities, offices and jobs. In fact, we’re growing faster outside the Bay Area than within it, and this year opened new offices and data centers in locations like Detroit, Boulder, Los Angeles, Tennessee and Alabama, wrote Google CFO Ruth Porat.”

Just this week, as GE was making its announcement, Google was announcing a major expansion in Cambridge, the city across the river from Boston that is home to Harvard and MIT. Kendall Square is also home to offices from Facebook, Microsoft, IBM, Akamai, DigitalOcean and a plethora of startups.

Google will be moving into a brand new building that currently is home to the MIT Coop bookstore. It plans to grab 365,000 square feet of the new building when it’s completed, and, as in NYC, will be adding hundreds of new jobs to the 1,500 already in place. Brian Cusack, Google Cambridge Site lead points out the company began operations in Cambridge back in 2003 and has been working on Search, Android, Cloud, YouTube, Google Play, Research, Ads and more.

“This new space will provide room for future growth and further cements our commitment to the Cambridge community. We’re proud to call this city home and will continue to support its vibrant nonprofit and growing business community,” he said in a statement.

As we learned this week, big company commitments can vanish just as quickly as they are announced, but for now at least, it appears that Google is serious about its commitment to New York and Boston and will be expanding office space and employment to the tune of thousands of jobs over the next decade.