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

Unified Diff: chrome/installer/util/delete_after_reboot_helper.cc

Issue 3836005: Move pe_image and registry from base to base/win and use the namespace. It re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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_after_reboot_helper.cc
===================================================================
--- chrome/installer/util/delete_after_reboot_helper.cc (revision 62848)
+++ chrome/installer/util/delete_after_reboot_helper.cc (working copy)
@@ -16,7 +16,7 @@
#include <vector>
#include "base/file_util.h"
-#include "base/registry.h"
+#include "base/win/registry.h"
#include "base/string_util.h"
// The moves-pending-reboot is a MULTISZ registry key in the HKLM part of the
@@ -245,8 +245,8 @@
// Get the current value of the key
// If the Key is missing, that's totally acceptable.
- RegKey session_manager_key(HKEY_LOCAL_MACHINE, kSessionManagerKey,
- KEY_QUERY_VALUE);
+ base::win::RegKey session_manager_key(HKEY_LOCAL_MACHINE, kSessionManagerKey,
+ KEY_QUERY_VALUE);
HKEY session_manager_handle = session_manager_key.Handle();
if (!session_manager_handle) {
return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
@@ -351,8 +351,8 @@
}
// Write the key back into a buffer.
- RegKey session_manager_key(HKEY_LOCAL_MACHINE, kSessionManagerKey,
- KEY_CREATE_SUB_KEY | KEY_SET_VALUE);
+ base::win::RegKey session_manager_key(HKEY_LOCAL_MACHINE, kSessionManagerKey,
+ KEY_CREATE_SUB_KEY | KEY_SET_VALUE);
if (!session_manager_key.Handle()) {
// Couldn't open / create the key.
LOG(ERROR) << "Failed to open session manager key for writing.";

Powered by Google App Engine
This is Rietveld 408576698