OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/memory/oom_priority_manager.h" | 5 #include "chrome/browser/chromeos/memory/oom_priority_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/multi_profile_uma.h" | 11 #include "ash/multi_profile_uma.h" |
12 #include "ash/session/session_state_delegate.h" | 12 #include "ash/session_state_delegate.h" |
13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
21 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 if (it == pid_to_oom_score_.end() || it->second != score) { | 653 if (it == pid_to_oom_score_.end() || it->second != score) { |
654 content::ZygoteHost::GetInstance()->AdjustRendererOOMScore(*iterator, | 654 content::ZygoteHost::GetInstance()->AdjustRendererOOMScore(*iterator, |
655 score); | 655 score); |
656 pid_to_oom_score_[*iterator] = score; | 656 pid_to_oom_score_[*iterator] = score; |
657 } | 657 } |
658 priority += priority_increment; | 658 priority += priority_increment; |
659 } | 659 } |
660 } | 660 } |
661 | 661 |
662 } // namespace chromeos | 662 } // namespace chromeos |
OLD | NEW |