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

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

Issue 1856623002: convert //rlz to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_id_win.cc ('k') | rlz/win/lib/rlz_lib_win.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) 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 // Information about the current process. 5 // Information about the current process.
6 6
7 #include "rlz/win/lib/process_info.h" 7 #include "rlz/win/lib/process_info.h"
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/process/process_info.h" 13 #include "base/process/process_info.h"
15 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
16 #include "base/win/scoped_handle.h" 15 #include "base/win/scoped_handle.h"
17 #include "base/win/win_util.h" 16 #include "base/win/win_util.h"
18 #include "base/win/windows_version.h" 17 #include "base/win/windows_version.h"
19 #include "rlz/lib/assert.h" 18 #include "rlz/lib/assert.h"
20 19
21 namespace { 20 namespace {
22 21
23 HRESULT GetElevationType(PTOKEN_ELEVATION_TYPE elevation) { 22 HRESULT GetElevationType(PTOKEN_ELEVATION_TYPE elevation) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 116 }
118 117
119 evaluated = true; 118 evaluated = true;
120 if (!has_rights) 119 if (!has_rights)
121 ASSERT_STRING("ProcessInfo::HasAdminRights: Does not have admin rights."); 120 ASSERT_STRING("ProcessInfo::HasAdminRights: Does not have admin rights.");
122 121
123 return has_rights; 122 return has_rights;
124 } 123 }
125 124
126 }; // namespace 125 }; // namespace
OLDNEW
« no previous file with comments | « rlz/win/lib/machine_id_win.cc ('k') | rlz/win/lib/rlz_lib_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698