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

Unified Diff: chrome/installer/util/move_tree_work_item.h

Issue 6538025: Temp dir cleanup:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/installer/util/move_tree_work_item.h
===================================================================
--- chrome/installer/util/move_tree_work_item.h (revision 75264)
+++ chrome/installer/util/move_tree_work_item.h (working copy)
@@ -6,11 +6,8 @@
#define CHROME_INSTALLER_UTIL_MOVE_TREE_WORK_ITEM_H_
#pragma once
-#include <windows.h>
-
-#include <string>
-
#include "base/file_path.h"
+#include "base/scoped_temp_dir.h"
#include "chrome/installer/util/work_item.h"
// A WorkItem subclass that recursively move a file system hierarchy from
@@ -49,9 +46,8 @@
// Temporary directory to backup dest_path_ (if it already exists).
FilePath temp_dir_;
- // The full path in temp_dir_ where the original dest_path_ has
- // been moved to.
- FilePath backup_path_;
+ // The temporary directory into which the original dest_path_ has been moved.
+ ScopedTempDir backup_path_;
// Whether the source was moved to dest_path_
bool moved_to_dest_path_;

Powered by Google App Engine
This is Rietveld 408576698