PURPOSE: This randomized phase II trial is studying sorafenib tosylate to see how well it works when given with or without gemcitabine hydrochloride and oxaliplatin in treating patients with locally advanced, unresectable, or metastatic liver cancer.