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

Unified Diff: base/process/process_win.cc

Issue 1641513004: Update //base to chromium 9659b08ea5a34f889dc4166217f438095ddc10d2 (Closed) Base URL: git@github.com:domokit/mojo.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/process_util_unittest.cc ('k') | base/profiler/stack_sampling_profiler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_win.cc
diff --git a/base/process/process_win.cc b/base/process/process_win.cc
index 2ad72c706b0549b9dbc544b686eac2658f0ab571..30cd9dc737268e01c557c3def27bada318c20b93 100644
--- a/base/process/process_win.cc
+++ b/base/process/process_win.cc
@@ -9,6 +9,7 @@
#include "base/metrics/field_trial.h"
#include "base/numerics/safe_conversions.h"
#include "base/process/kill.h"
+#include "base/strings/string_util.h"
#include "base/win/windows_version.h"
namespace {
@@ -189,8 +190,10 @@ bool Process::SetProcessBackgrounded(bool value) {
DWORD background_priority = IDLE_PRIORITY_CLASS;
base::FieldTrial* trial =
base::FieldTrialList::Find("BackgroundRendererProcesses");
- if (trial && trial->group_name() == "AllowBelowNormalFromBrowser")
+ if (trial && StartsWith(trial->group_name(), "AllowBelowNormalFromBrowser",
+ CompareCase::SENSITIVE)) {
background_priority = BELOW_NORMAL_PRIORITY_CLASS;
+ }
priority = value ? background_priority : NORMAL_PRIORITY_CLASS;
}
« no previous file with comments | « base/process/process_util_unittest.cc ('k') | base/profiler/stack_sampling_profiler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698