I have absolutely no idea about US practice in this regard but in Europe it's simple: as long as the cord is double insulated (i.e. not zip cord) the only part that counts is the socket itself. Metal socket - grounded. Plastic socket - not grounded.