 That gesture capitalized on diplomatic trouble that had resulted from anti-Japanese riots in San Francisco.Those problems had been resolved by the Gentlemen's Agreement of 1907 and the fleet visit was a friendly gesture to Japan.The Japanese welcomed it.