Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: chrome/browser/shell_integration_linux.cc

Issue 2321453002: c/browser, c/common, components S-W: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/shell_integration_linux.cc
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 19d0a37f1d7d3f9105b652dd6f46bd75664abbe7..30c6630bf78ea99adbcc724bcecebfef01ef9a0e 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -283,8 +283,8 @@ std::string CreateShortcutIcon(const gfx::ImageFamily& icon_images,
if (!temp_dir.CreateUniqueTempDir())
return std::string();
- base::FilePath temp_file_path = temp_dir.path().Append(
- shortcut_filename.ReplaceExtension("png"));
+ base::FilePath temp_file_path =
+ temp_dir.GetPath().Append(shortcut_filename.ReplaceExtension("png"));
std::string icon_name = temp_file_path.BaseName().RemoveExtension().value();
for (gfx::ImageFamily::const_iterator it = icon_images.begin();
@@ -386,7 +386,7 @@ bool CreateShortcutInApplicationsMenu(const base::FilePath& shortcut_filename,
base::FilePath temp_directory_path;
if (!directory_filename.empty()) {
- temp_directory_path = temp_dir.path().Append(directory_filename);
+ temp_directory_path = temp_dir.GetPath().Append(directory_filename);
int bytes_written = base::WriteFile(temp_directory_path,
directory_contents.data(),
@@ -396,7 +396,7 @@ bool CreateShortcutInApplicationsMenu(const base::FilePath& shortcut_filename,
return false;
}
- base::FilePath temp_file_path = temp_dir.path().Append(shortcut_filename);
+ base::FilePath temp_file_path = temp_dir.GetPath().Append(shortcut_filename);
int bytes_written = base::WriteFile(temp_file_path, contents.data(),
contents.length());
« no previous file with comments | « chrome/browser/search_engines/template_url_service_test_util.cc ('k') | chrome/browser/shell_integration_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698