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

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

Issue 282363003: Add WOW64 support to the installer registry work items (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: nits. fix call to DeleteRegistryKey Created 6 years, 7 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
« no previous file with comments | « chrome/installer/util/app_command.cc ('k') | chrome/installer/util/copy_reg_key_work_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/copy_reg_key_work_item.h
diff --git a/chrome/installer/util/copy_reg_key_work_item.h b/chrome/installer/util/copy_reg_key_work_item.h
deleted file mode 100644
index 7a84b63cb62b37d1693e21fb1fe1173f47371e94..0000000000000000000000000000000000000000
--- a/chrome/installer/util/copy_reg_key_work_item.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_
-#define CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/installer/util/registry_key_backup.h"
-#include "chrome/installer/util/work_item.h"
-
-// A WorkItem subclass that replaces the contents of one registry key with that
-// of another (i.e., the destination is erased prior to the copy). Be aware
-// that in the event of rollback the destination key's values and subkeys are
-// restored but the key and its subkeys take on their default security
-// descriptors.
-class CopyRegKeyWorkItem : public WorkItem {
- public:
- virtual ~CopyRegKeyWorkItem();
- virtual bool Do() OVERRIDE;
- virtual void Rollback() OVERRIDE;
-
- private:
- // Grant WorkItem access to the ctor (required by the existing WorkItem
- // design).
- friend class WorkItem;
-
- // Neither |source_key_path| nor |dest_key_path| may be empty.
- // Only ALWAYS and IF_NOT_PRESENT are supported for |overwrite_option|.
- CopyRegKeyWorkItem(HKEY predefined_key,
- const std::wstring& source_key_path,
- const std::wstring& dest_key_path,
- CopyOverWriteOption overwrite_option);
-
- // Root key in which we operate. The root key must be one of the predefined
- // keys on Windows.
- HKEY predefined_root_;
-
- // Path of the key to be copied.
- std::wstring source_key_path_;
-
- // Path of the destination key.
- std::wstring dest_key_path_;
-
- // WorkItem::ALWAYS or WorkItem::IF_NOT_PRESENT.
- CopyOverWriteOption overwrite_option_;
-
- // Backup of the destination key.
- RegistryKeyBackup backup_;
-
- // Set to true after the destination is cleared for the copy.
- bool cleared_destination_;
-
- DISALLOW_COPY_AND_ASSIGN(CopyRegKeyWorkItem);
-};
-
-#endif // CHROME_INSTALLER_UTIL_COPY_REG_KEY_WORK_ITEM_H_
« no previous file with comments | « chrome/installer/util/app_command.cc ('k') | chrome/installer/util/copy_reg_key_work_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698