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

Unified Diff: content/renderer/render_process_visibility_manager.cc

Issue 18910002: Set DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY to true on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address James's comments. Created 7 years, 5 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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_process_visibility_manager.cc
diff --git a/content/renderer/render_process_visibility_manager.cc b/content/renderer/render_process_visibility_manager.cc
index 8231df4552174355793983775a2c2e2bbd025ecc..ed84bdfa49e938ced8e6ce1c28a129841d0403af 100644
--- a/content/renderer/render_process_visibility_manager.cc
+++ b/content/renderer/render_process_visibility_manager.cc
@@ -22,14 +22,14 @@ RenderProcessVisibilityManager* RenderProcessVisibilityManager::GetInstance() {
}
void RenderProcessVisibilityManager::WidgetVisibilityChanged(bool visible) {
-#if !defined(DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY)
+#if !defined(SYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE)
num_visible_render_widgets_ += visible ? 1 : -1;
DCHECK_LE(0, num_visible_render_widgets_);
if (num_visible_render_widgets_ == 0) {
// TODO(vollick): Remove this this heavy-handed approach once we're polling
// the real system memory pressure.
base::MemoryPressureListener::NotifyMemoryPressure(
- base::MemoryPressureListener::MEMORY_PRESSURE_CRITICAL);
+ base::MemoryPressureListener::MEMORY_PRESSURE_MODERATE);
}
#endif
}
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698