Index: base/process/memory_linux.cc |
diff --git a/base/process/memory_linux.cc b/base/process/memory_linux.cc |
index 6bed68bd8320346b1ff98a39417e604e0339b020..688e31758294401c1ccf86dc9c86cf14eefc1bd0 100644 |
--- a/base/process/memory_linux.cc |
+++ b/base/process/memory_linux.cc |
@@ -157,9 +157,7 @@ bool AdjustOOMScore(ProcessId process, int score) { |
DVLOG(1) << "Adjusting oom_score_adj of " << process << " to " |
<< score_str; |
int score_len = static_cast<int>(score_str.length()); |
- return (score_len == file_util::WriteFile(oom_file, |
- score_str.c_str(), |
- score_len)); |
+ return (score_len == WriteFile(oom_file, score_str.c_str(), score_len)); |
} |
// If the oom_score_adj file doesn't exist, then we write the old |
@@ -174,9 +172,7 @@ bool AdjustOOMScore(ProcessId process, int score) { |
std::string score_str = IntToString(converted_score); |
DVLOG(1) << "Adjusting oom_adj of " << process << " to " << score_str; |
int score_len = static_cast<int>(score_str.length()); |
- return (score_len == file_util::WriteFile(oom_file, |
- score_str.c_str(), |
- score_len)); |
+ return (score_len == WriteFile(oom_file, score_str.c_str(), score_len)); |
} |
return false; |