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

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

Issue 8176008: Merge 101684 - Added CopyRegKeyWorkItem in support of IE low rights policy fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 2 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/delete_reg_key_work_item.h
===================================================================
--- chrome/installer/util/delete_reg_key_work_item.h (revision 104337)
+++ chrome/installer/util/delete_reg_key_work_item.h (working copy)
@@ -11,9 +11,12 @@
#include <string>
#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/compiler_specific.h"
+#include "chrome/installer/util/registry_key_backup.h"
#include "chrome/installer/util/work_item.h"
+class RegistryKeyBackup;
+
// A WorkItem subclass that deletes a registry key at the given path. Be aware
// that in the event of rollback the key's values and subkeys are restored but
// the key and its subkeys take on their default security descriptors.
@@ -21,12 +24,11 @@
public:
virtual ~DeleteRegKeyWorkItem();
- virtual bool Do();
+ virtual bool Do() OVERRIDE;
- virtual void Rollback();
+ virtual void Rollback() OVERRIDE;
private:
- class RegKeyBackup;
friend class WorkItem;
DeleteRegKeyWorkItem(HKEY predefined_root, const std::wstring& path);
@@ -39,7 +41,7 @@
std::wstring path_;
// Backup of the deleted key.
- scoped_ptr<RegKeyBackup> backup_;
+ RegistryKeyBackup backup_;
DISALLOW_COPY_AND_ASSIGN(DeleteRegKeyWorkItem);
};
« no previous file with comments | « chrome/installer/util/copy_reg_key_work_item_unittest.cc ('k') | chrome/installer/util/delete_reg_key_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698