Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / media / router / media_sinks_observer.cc
blob7a08d54bb195ec92703e96095c6f5f8b867fb641
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/media/router/media_sinks_observer.h"
7 #include "base/logging.h"
8 #include "chrome/browser/media/router/media_router.h"
10 namespace media_router {
12 MediaSinksObserver::MediaSinksObserver(MediaRouter* router,
13 const MediaSource& source)
14 : source_(source), router_(router) {
15 DCHECK(router_);
16 router_->RegisterMediaSinksObserver(this);
19 MediaSinksObserver::~MediaSinksObserver() {
20 router_->UnregisterMediaSinksObserver(this);
23 } // namespace media_router