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

Side by Side Diff: chrome/installer/util/delete_after_reboot_helper.h

Issue 5354006: Fix a problem with the delete-after-reboot code. Removing pending renames of ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/installer/util/delete_after_reboot_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file declares helper methods used to schedule files for deletion 5 // This file declares helper methods used to schedule files for deletion
6 // on next reboot. 6 // on next reboot.
7 7
8 #ifndef CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ 8 #ifndef CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_
9 #define CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ 9 #define CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_
10 #pragma once 10 #pragma once
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 std::vector<PendingMove>* value); 57 std::vector<PendingMove>* value);
58 58
59 // The inverse of MultiSZBytesToStringArray, this function converts a list 59 // The inverse of MultiSZBytesToStringArray, this function converts a list
60 // of string pairs into a byte array format suitable for writing to the 60 // of string pairs into a byte array format suitable for writing to the
61 // kPendingFileRenameOps registry value. It concatenates the strings and 61 // kPendingFileRenameOps registry value. It concatenates the strings and
62 // appends an additional terminating null character. 62 // appends an additional terminating null character.
63 void StringArrayToMultiSZBytes(const std::vector<PendingMove>& strings, 63 void StringArrayToMultiSZBytes(const std::vector<PendingMove>& strings,
64 std::vector<char>* buffer); 64 std::vector<char>* buffer);
65 65
66 // A helper function for the win32 GetShortPathName that more conveniently 66 // A helper function for the win32 GetShortPathName that more conveniently
67 // returns a correctly sized wstring. 67 // returns a correctly sized wstring. Note that if |path| is not present on the
68 // file system then GetShortPathName will return |path| unchanged, unlike the
69 // win32 GetShortPathName which will return an error.
68 std::wstring GetShortPathName(const wchar_t* path); 70 std::wstring GetShortPathName(const wchar_t* path);
69 71
70 #endif // CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_ 72 #endif // CHROME_INSTALLER_UTIL_DELETE_AFTER_REBOOT_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/util/delete_after_reboot_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698