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

Unified Diff: content/browser/memory_pressure_observer.cc

Issue 815183002: Using the new MemoryPressureListener instead of the LowMemoryObserver when the enhanced memory mana… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed flaky unit test Created 5 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 | « chrome/browser/chromeos/memory/oom_priority_manager_browsertest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory_pressure_observer.cc
diff --git a/content/browser/memory_pressure_observer.cc b/content/browser/memory_pressure_observer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d1ae7601096140236625f6a561716c80a748e955
--- /dev/null
+++ b/content/browser/memory_pressure_observer.cc
@@ -0,0 +1,18 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/memory_pressure_observer.h"
+
+#include "content/browser/browser_main_loop.h"
+
+#if defined(OS_CHROMEOS)
+namespace content {
+
+base::MemoryPressureObserverChromeOS* GetMemoryPressureObserver() {
+ DCHECK(BrowserMainLoop::GetInstance());
+ return BrowserMainLoop::GetInstance()->memory_pressure_observer();
+}
+
+} // namespace content
+#endif
« no previous file with comments | « chrome/browser/chromeos/memory/oom_priority_manager_browsertest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698