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

Side by Side Diff: base/process_win.cc

Issue 8506036: Fix tab backgrounding on Linux / ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated license Created 9 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 | « base/process_posix.cc ('k') | content/browser/renderer_host/render_process_host_browsertest.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) 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.h" 5 #include "base/process.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 bool Process::is_current() const { 73 bool Process::is_current() const {
74 return process_ == GetCurrentProcess(); 74 return process_ == GetCurrentProcess();
75 } 75 }
76 76
77 // static 77 // static
78 Process Process::Current() { 78 Process Process::Current() {
79 return Process(::GetCurrentProcess()); 79 return Process(::GetCurrentProcess());
80 } 80 }
81 81
82 // static
83 bool Process::CanBackgroundProcesses() {
84 return true;
85 }
86
82 int Process::GetPriority() const { 87 int Process::GetPriority() const {
83 DCHECK(process_); 88 DCHECK(process_);
84 return ::GetPriorityClass(process_); 89 return ::GetPriorityClass(process_);
85 } 90 }
86 91
87 } // namespace base 92 } // namespace base
OLDNEW
« no previous file with comments | « base/process_posix.cc ('k') | content/browser/renderer_host/render_process_host_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698