diff options
author | mgiuca <mgiuca@chromium.org> | 2014-11-09 22:44:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-10 06:44:47 +0000 |
commit | 64ccf236e6657cf0a85506c56d4ba226fdea4765 (patch) | |
tree | 32a2887d6f35225748b3ae93193fdb306575bdd0 /chromeos/dbus/fake_cras_audio_client.cc | |
parent | d2b6be4e2ef7a38d503deb1f89ca96b16c85effb (diff) | |
download | chromium_src-64ccf236e6657cf0a85506c56d4ba226fdea4765.zip chromium_src-64ccf236e6657cf0a85506c56d4ba226fdea4765.tar.gz chromium_src-64ccf236e6657cf0a85506c56d4ba226fdea4765.tar.bz2 |
ObserverList::HasObserver now takes a const pointer.
Updated all clients that wrap HasObserver and expose it to also take a
const pointer. This change avoids further propagation of non-constness
(which was previously required when using HasObserver methods).
BUG=429588
TBR=michaeln@chromium.org,nyquist@chromium.org,pkotwicz@chromium.org,satorux@chromium.org,sky@chromium.org,zea@chromium.org
Review URL: https://codereview.chromium.org/697953002
Cr-Commit-Position: refs/heads/master@{#303428}
Diffstat (limited to 'chromeos/dbus/fake_cras_audio_client.cc')
-rw-r--r-- | chromeos/dbus/fake_cras_audio_client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromeos/dbus/fake_cras_audio_client.cc b/chromeos/dbus/fake_cras_audio_client.cc index 6c8f941..b2135aa 100644 --- a/chromeos/dbus/fake_cras_audio_client.cc +++ b/chromeos/dbus/fake_cras_audio_client.cc @@ -68,7 +68,7 @@ void FakeCrasAudioClient::RemoveObserver(Observer* observer) { observers_.RemoveObserver(observer); } -bool FakeCrasAudioClient::HasObserver(Observer* observer) { +bool FakeCrasAudioClient::HasObserver(const Observer* observer) const { return observers_.HasObserver(observer); } |