Index: chrome/browser/ui/ash/volume_controller_chromeos.cc |
diff --git a/chrome/browser/ui/ash/volume_controller_chromeos.cc b/chrome/browser/ui/ash/volume_controller_chromeos.cc |
index f44b8b401f592e7742453e565a31fa5951663c45..d90aa6062398b9dd3c10b22c1f06b10b2802977f 100644 |
--- a/chrome/browser/ui/ash/volume_controller_chromeos.cc |
+++ b/chrome/browser/ui/ash/volume_controller_chromeos.cc |
@@ -17,7 +17,7 @@ const double kStepPercentage = 4.0; |
} // namespace |
bool VolumeController::HandleVolumeMute(const ui::Accelerator& accelerator) { |
- if (accelerator.key_code() == ui::VKEY_F8) |
+ if (accelerator.key_code() == ui::VKEY_VOLUME_MUTE) |
content::RecordAction(content::UserMetricsAction("Accel_VolumeMute_F8")); |
chromeos::AudioHandler* audio_handler = chromeos::AudioHandler::GetInstance(); |
@@ -32,7 +32,7 @@ bool VolumeController::HandleVolumeMute(const ui::Accelerator& accelerator) { |
} |
bool VolumeController::HandleVolumeDown(const ui::Accelerator& accelerator) { |
- if (accelerator.key_code() == ui::VKEY_F9) |
+ if (accelerator.key_code() == ui::VKEY_VOLUME_DOWN) |
content::RecordAction(content::UserMetricsAction("Accel_VolumeDown_F9")); |
chromeos::AudioHandler* audio_handler = chromeos::AudioHandler::GetInstance(); |
@@ -47,7 +47,7 @@ bool VolumeController::HandleVolumeDown(const ui::Accelerator& accelerator) { |
} |
bool VolumeController::HandleVolumeUp(const ui::Accelerator& accelerator) { |
- if (accelerator.key_code() == ui::VKEY_F10) |
+ if (accelerator.key_code() == ui::VKEY_VOLUME_UP) |
content::RecordAction(content::UserMetricsAction("Accel_VolumeUp_F10")); |
chromeos::AudioHandler* audio_handler = chromeos::AudioHandler::GetInstance(); |