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

Unified Diff: chrome/browser/memory/oom_priority_manager.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 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
Index: chrome/browser/memory/oom_priority_manager.cc
diff --git a/chrome/browser/memory/oom_priority_manager.cc b/chrome/browser/memory/oom_priority_manager.cc
index 2a1621b049be23aee8ecc6c1c90b192a65ff48db..c597dcb9b59fe7287bf053b403709a96e6106d54 100644
--- a/chrome/browser/memory/oom_priority_manager.cc
+++ b/chrome/browser/memory/oom_priority_manager.cc
@@ -152,11 +152,11 @@ TabStatsList OomPriorityManager::GetTabStats() {
// chrome::GetActiveDesktop to get the current used type).
AddTabStats(BrowserList::GetInstance(chrome::GetActiveDesktop()), true,
&stats_list);
- if (chrome::GetActiveDesktop() != chrome::HOST_DESKTOP_TYPE_NATIVE) {
- AddTabStats(BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE),
- false, &stats_list);
- } else if (chrome::GetActiveDesktop() != chrome::HOST_DESKTOP_TYPE_ASH) {
- AddTabStats(BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH), false,
+ if (chrome::GetActiveDesktop() != ui::HOST_DESKTOP_TYPE_NATIVE) {
+ AddTabStats(BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_NATIVE), false,
+ &stats_list);
+ } else if (chrome::GetActiveDesktop() != ui::HOST_DESKTOP_TYPE_ASH) {
+ AddTabStats(BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_ASH), false,
&stats_list);
}
@@ -378,8 +378,8 @@ void OomPriorityManager::UpdateTimerCallback() {
if (g_browser_process->IsShuttingDown())
return;
- if (BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH)->empty() &&
- BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_NATIVE)->empty())
+ if (BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_ASH)->empty() &&
+ BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_NATIVE)->empty())
return;
// Check for a discontinuity in time caused by the machine being suspended.

Powered by Google App Engine
This is Rietveld 408576698