U.S. technology giants Microsoft, Google and Yahoo, in talks with other Internet companies and human-rights groups, have reached an agreement on a voluntary code of conduct for activities in China and other restrictive countries, the Wall Street Journal reported on Tuesday.