Index: base/process_linux.cc |
diff --git a/base/process_linux.cc b/base/process_linux.cc |
index 3f78a31c193039a1dee54d7ff7be007c33c41a04..64c72ee37005da2ab4f4e135698f5704acc227d2 100644 |
--- a/base/process_linux.cc |
+++ b/base/process_linux.cc |
@@ -18,8 +18,6 @@ static const char kForegroundTasks[] = |
"/tmp/cgroup/cpu/chrome_renderers/foreground/tasks"; |
static const char kBackgroundTasks[] = |
"/tmp/cgroup/cpu/chrome_renderers/background/tasks"; |
-static FilePath foreground_tasks; |
-static FilePath background_tasks; |
#endif |
namespace base { |
@@ -47,10 +45,10 @@ bool Process::SetProcessBackgrounded(bool background) { |
// one contains at most a single foreground renderer and the other contains |
// all background renderers. This allows us to limit the impact of background |
// renderers on foreground ones to a greater level than simple renicing. |
+ FilePath foreground_tasks(kForegroundTasks); |
+ FilePath background_tasks(kBackgroundTasks); |
if (!cgroups_inited) { |
cgroups_inited = true; |
- foreground_tasks = FilePath(kForegroundTasks); |
- background_tasks = FilePath(kBackgroundTasks); |
file_util::FileSystemType foreground_type; |
file_util::FileSystemType background_type; |
use_cgroups = |