Fix Debug building on Windows

This commit is contained in:
Cheng Zhao 2017-01-26 16:09:45 +09:00
parent 94fdcb4f48
commit a749a3dd2a
4 changed files with 2 additions and 7 deletions

View file

@ -56,7 +56,7 @@ bool NotificationPresenterWin::Init() {
base::string16 NotificationPresenterWin::SaveIconToFilesystem(
const SkBitmap& icon, const GURL& origin) {
std::string filename = base::MD5String(origin.spec()) + ".png";
base::FilePath path = temp_dir_.path().Append(base::UTF8ToUTF16(filename));
base::FilePath path = temp_dir_.GetPath().Append(base::UTF8ToUTF16(filename));
if (base::PathExists(path))
return path.value();
if (SaveIconToPath(icon, path))