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

Unified Diff: chrome/browser/media/router/media_router_mojo_impl.cc

Issue 1420533008: [Media Router] Set initial sink availability to available in MRMojoImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | chrome/browser/media/router/media_router_mojo_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_router_mojo_impl.cc
diff --git a/chrome/browser/media/router/media_router_mojo_impl.cc b/chrome/browser/media/router/media_router_mojo_impl.cc
index 9fdd6fd14a59c4d9d3f67c011bae75ea6b788239..d6bb508426f9554f0d21739e951136ec1b63e6c3 100644
--- a/chrome/browser/media/router/media_router_mojo_impl.cc
+++ b/chrome/browser/media/router/media_router_mojo_impl.cc
@@ -91,14 +91,12 @@ void MediaRouterMojoImpl::MediaRouterMediaRoutesObserver::OnRoutesUpdated(
router_->UpdateHasLocalRoute(has_local_route);
}
-// TODO(mfoltz): Flip the default sink availability to UNAVAILABLE, once the
-// MRPM sends initial availability status.
MediaRouterMojoImpl::MediaRouterMojoImpl(
extensions::EventPageTracker* event_page_tracker)
: event_page_tracker_(event_page_tracker),
instance_id_(base::GenerateGUID()),
has_local_route_(false),
- availability_(interfaces::MediaRouter::SINK_AVAILABILITY_AVAILABLE),
+ availability_(interfaces::MediaRouter::SINK_AVAILABILITY_UNAVAILABLE),
wakeup_attempt_count_(0),
weak_factory_(this) {
DCHECK(event_page_tracker_);
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router_mojo_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698