Terrorism is usually only defined by your allegiance, yes. In this case google is a US company so in the case they know violent islamic extremists use their platform, their allegiance is with the Americans, even if it happens to be the Americans blow up innocent Arabs and the extremists may just be engaging in self defense.