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

Side by Side Diff: chrome/installer/mini_installer/mini_installer.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // mini_installer.exe is the first exe that is run when chrome is being 5 // mini_installer.exe is the first exe that is run when chrome is being
6 // installed or upgraded. It is designed to be extremely small (~5KB with no 6 // installed or upgraded. It is designed to be extremely small (~5KB with no
7 // extra resources linked) and it has two main jobs: 7 // extra resources linked) and it has two main jobs:
8 // 1) unpack the resources (possibly decompressing some) 8 // 1) unpack the resources (possibly decompressing some)
9 // 2) run the real installer (setup.exe) with appropriate flags. 9 // 2) run the real installer (setup.exe) with appropriate flags.
10 // 10 //
(...skipping 15 matching lines...) Expand all
26 // #define needed to link in RtlGenRandom(), a.k.a. SystemFunction036. See the 26 // #define needed to link in RtlGenRandom(), a.k.a. SystemFunction036. See the
27 // "Community Additions" comment on MSDN here: 27 // "Community Additions" comment on MSDN here:
28 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx 28 // http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx
29 #define SystemFunction036 NTAPI SystemFunction036 29 #define SystemFunction036 NTAPI SystemFunction036
30 #include <NTSecAPI.h> 30 #include <NTSecAPI.h>
31 #undef SystemFunction036 31 #undef SystemFunction036
32 32
33 #include <sddl.h> 33 #include <sddl.h>
34 #include <shellapi.h> 34 #include <shellapi.h>
35 #include <stdlib.h> 35 #include <stdlib.h>
36 #include <stddef.h>
36 37
37 #include "chrome/installer/mini_installer/appid.h" 38 #include "chrome/installer/mini_installer/appid.h"
38 #include "chrome/installer/mini_installer/configuration.h" 39 #include "chrome/installer/mini_installer/configuration.h"
39 #include "chrome/installer/mini_installer/decompress.h" 40 #include "chrome/installer/mini_installer/decompress.h"
40 #include "chrome/installer/mini_installer/exit_code.h" 41 #include "chrome/installer/mini_installer/exit_code.h"
41 #include "chrome/installer/mini_installer/mini_installer_constants.h" 42 #include "chrome/installer/mini_installer/mini_installer_constants.h"
42 #include "chrome/installer/mini_installer/mini_string.h" 43 #include "chrome/installer/mini_installer/mini_string.h"
43 #include "chrome/installer/mini_installer/pe_resource.h" 44 #include "chrome/installer/mini_installer/pe_resource.h"
44 #include "chrome/installer/mini_installer/regkey.h" 45 #include "chrome/installer/mini_installer/regkey.h"
45 46
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 #pragma function(memset) 898 #pragma function(memset)
898 void* memset(void* dest, int c, size_t count) { 899 void* memset(void* dest, int c, size_t count) {
899 void* start = dest; 900 void* start = dest;
900 while (count--) { 901 while (count--) {
901 *reinterpret_cast<char*>(dest) = static_cast<char>(c); 902 *reinterpret_cast<char*>(dest) = static_cast<char>(c);
902 dest = reinterpret_cast<char*>(dest) + 1; 903 dest = reinterpret_cast<char*>(dest) + 1;
903 } 904 }
904 return start; 905 return start;
905 } 906 }
906 } // extern "C" 907 } // extern "C"
OLDNEW
« no previous file with comments | « chrome/installer/mini_installer/decompress.cc ('k') | chrome/installer/mini_installer/mini_string.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698