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

Unified Diff: extensions/browser/api/audio/audio_service.cc

Issue 945103002: Add a new audio extension event OnLevelChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: extensions/browser/api/audio/audio_service.cc
diff --git a/extensions/browser/api/audio/audio_service.cc b/extensions/browser/api/audio/audio_service.cc
index 0e21680e54b387389365e986062f286b68f6ac2b..91be0ff21fdf616f2acf62dcacc67b7e21c5c1b4 100644
--- a/extensions/browser/api/audio/audio_service.cc
+++ b/extensions/browser/api/audio/audio_service.cc
@@ -52,4 +52,11 @@ bool AudioServiceImpl::SetDeviceProperties(const std::string& device_id,
return false;
}
+void AudioServiceImpl::StartGetDeviceInfo(
+ const GetDeviceInfoCallback& callback) {
+ // TODO: implement this for platforms other than Chrome OS.
+ if (!callback.is_null())
+ callback.Run(DevicesInfo(), false);
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698