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

Side by Side Diff: rlz/win/lib/machine_id_win.cc

Issue 1547683004: Switch to standard integer types in rlz/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « rlz/win/lib/machine_deal.cc ('k') | rlz/win/lib/process_info.h » ('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) 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 #include <windows.h> 5 #include <windows.h>
6 #include <Sddl.h> // For ConvertSidToStringSidW. 6 #include <Sddl.h> // For ConvertSidToStringSidW.
7 #include <string> 7 #include <string>
8 8
9 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "rlz/lib/assert.h" 12 #include "rlz/lib/assert.h"
12 13
13 namespace rlz_lib { 14 namespace rlz_lib {
14 15
15 namespace { 16 namespace {
16 17
17 bool GetSystemVolumeSerialNumber(int* number) { 18 bool GetSystemVolumeSerialNumber(int* number) {
18 if (!number) 19 if (!number)
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 *volume_id = 0; 98 *volume_id = 0;
98 if (!GetSystemVolumeSerialNumber(volume_id)) { 99 if (!GetSystemVolumeSerialNumber(volume_id)) {
99 ASSERT_STRING("GetMachineId: Failed to retrieve volume serial number"); 100 ASSERT_STRING("GetMachineId: Failed to retrieve volume serial number");
100 *volume_id = 0; 101 *volume_id = 0;
101 } 102 }
102 103
103 return true; 104 return true;
104 } 105 }
105 106
106 } // namespace rlz_lib 107 } // namespace rlz_lib
OLDNEW
« no previous file with comments | « rlz/win/lib/machine_deal.cc ('k') | rlz/win/lib/process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698