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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 1376703002: Presentation API: reject screen availability observing on Android low ram devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix and add tests Created 5 years, 2 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: content/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index 80e2aeacd74914cb97eee814b26873ef104ee8e4..89f89d4fd67d1561ded2e1969e8e80c5764f2f06 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -573,6 +573,11 @@ void PresentationServiceImpl::ScreenAvailabilityListenerImpl
service_->client_->OnScreenAvailabilityUpdated(availability_url_, available);
}
+void PresentationServiceImpl::ScreenAvailabilityListenerImpl
+::OnScreenAvailabilityNotSupported() {
+ service_->client_->OnScreenAvailabilityNotSupported(availability_url_);
+}
+
PresentationServiceImpl::NewSessionMojoCallbackWrapper
::NewSessionMojoCallbackWrapper(const NewSessionMojoCallback& callback)
: callback_(callback) {

Powered by Google App Engine
This is Rietveld 408576698