From 33edeab42b851a5617a77caa1d65a3782a01ee7b Mon Sep 17 00:00:00 2001 From: "erikkay@chromium.org" Date: Tue, 18 Aug 2009 16:07:55 +0000 Subject: Renames the function CreateTemporaryFilename to CreateTemporaryFile and track down all callers, also removes the deprecated function that uses std::wstring. BUG=3078 (http://crbug.com/3078) TEST=run base_unittests, installer_util_unittests, net_unittests, setup_unittests, and unit_tests. Review URL: http://codereview.chromium.org/164537 Patch from Thiago Farina. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23631 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/jumplist.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/jumplist.cc') diff --git a/chrome/browser/jumplist.cc b/chrome/browser/jumplist.cc index 81342aa..26b0e75 100644 --- a/chrome/browser/jumplist.cc +++ b/chrome/browser/jumplist.cc @@ -243,18 +243,18 @@ bool CreateIconFile(const SkBitmap& bitmap, // Retrieve the path to a temporary file. // We don't have to care about the extension of this temporary file because // JumpList does not care about it. - std::wstring path; - if (!file_util::CreateTemporaryFileNameInDir(icon_dir, &path)) + FilePath path; + if (!file_util::CreateTemporaryFileInDir(FilePath(icon_dir), &path)) return false; // Create an icon file from the favicon attached to the given |page|, and // save it as the temporary file. - if (!IconUtil::CreateIconFileFromSkBitmap(bitmap, path)) + if (!IconUtil::CreateIconFileFromSkBitmap(bitmap, path.value())) return false; // Add this icon file to the list and return its absolute path. // The IShellLink::SetIcon() function needs the absolute path to an icon. - icon_path->assign(path); + icon_path->assign(path.value()); return true; } -- cgit v1.1