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

Unified Diff: trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc

Issue 170843009: Revert 251959 "Refactor the TrayAudio code so that it can be use..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc
===================================================================
--- trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (revision 252005)
+++ trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.cc (working copy)
@@ -314,9 +314,6 @@
if (LoginState::IsInitialized())
LoginState::Get()->AddObserver(this);
-
- if (CrasAudioHandler::IsInitialized())
- CrasAudioHandler::Get()->AddAudioObserver(this);
}
void SystemTrayDelegateChromeOS::Shutdown() {
@@ -372,10 +369,7 @@
->RemoveSessionStateObserver(this);
LoginState::Get()->RemoveObserver(this);
- if (CrasAudioHandler::IsInitialized())
- CrasAudioHandler::Get()->RemoveAudioObserver(this);
-
-// Stop observing Drive operations.
+ // Stop observing Drive operations.
UnobserveDriveUpdates();
policy::BrowserPolicyConnectorChromeOS* connector =
@@ -1216,33 +1210,6 @@
GetSystemTrayNotifier()->NotifyRefreshIME(false);
}
-// Overridden from CrasAudioHandler::AudioObserver.
-void SystemTrayDelegateChromeOS::OnOutputVolumeChanged() {
- GetSystemTrayNotifier()->NotifyAudioOutputVolumeChanged();
-}
-
-void SystemTrayDelegateChromeOS::OnOutputMuteChanged() {
- GetSystemTrayNotifier()->NotifyAudioOutputMuteChanged();
-}
-
-void SystemTrayDelegateChromeOS::OnInputGainChanged() {
-}
-
-void SystemTrayDelegateChromeOS::OnInputMuteChanged() {
-}
-
-void SystemTrayDelegateChromeOS::OnAudioNodesChanged() {
- GetSystemTrayNotifier()->NotifyAudioNodesChanged();
-}
-
-void SystemTrayDelegateChromeOS::OnActiveOutputNodeChanged() {
- GetSystemTrayNotifier()->NotifyAudioActiveOutputNodeChanged();
-}
-
-void SystemTrayDelegateChromeOS::OnActiveInputNodeChanged() {
- GetSystemTrayNotifier()->NotifyAudioActiveInputNodeChanged();
-}
-
// drive::JobListObserver overrides.
void SystemTrayDelegateChromeOS::OnJobAdded(const drive::JobInfo& job_info) {
OnJobUpdated(job_info);
« no previous file with comments | « trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.h ('k') | trunk/src/chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698