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

Side by Side Diff: base/process/process_win.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant base:: prefix 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/process/process.h" 5 #include "base/process/process.h"
6 6
7 #include <memory>
Nico 2016/04/04 17:14:56 unused
dcheng 2016/04/04 17:43:39 Done.
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
10 #include "base/process/kill.h" 11 #include "base/process/kill.h"
11 #include "base/win/windows_version.h" 12 #include "base/win/windows_version.h"
12 13
13 namespace { 14 namespace {
14 15
15 DWORD kBasicProcessAccess = 16 DWORD kBasicProcessAccess =
16 PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION | SYNCHRONIZE; 17 PROCESS_TERMINATE | PROCESS_QUERY_INFORMATION | SYNCHRONIZE;
17 18
18 } // namespace 19 } // namespace
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 182
182 return (::SetPriorityClass(Handle(), priority) != 0); 183 return (::SetPriorityClass(Handle(), priority) != 0);
183 } 184 }
184 185
185 int Process::GetPriority() const { 186 int Process::GetPriority() const {
186 DCHECK(IsValid()); 187 DCHECK(IsValid());
187 return ::GetPriorityClass(Handle()); 188 return ::GetPriorityClass(Handle());
188 } 189 }
189 190
190 } // namespace base 191 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698