summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/fake_cras_audio_client.cc
diff options
context:
space:
mode:
authormgiuca <mgiuca@chromium.org>2014-11-09 22:44:23 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-10 06:44:47 +0000
commit64ccf236e6657cf0a85506c56d4ba226fdea4765 (patch)
tree32a2887d6f35225748b3ae93193fdb306575bdd0 /chromeos/dbus/fake_cras_audio_client.cc
parentd2b6be4e2ef7a38d503deb1f89ca96b16c85effb (diff)
downloadchromium_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.cc2
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);
}