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

Unified Diff: ash/common/system/audio/volume_view.cc

Issue 2084533008: mash: Migrate tray audio and deps to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 6 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
« no previous file with comments | « ash/common/system/audio/volume_view.h ('k') | ash/common/system/tray/wm_system_tray_notifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/audio/volume_view.cc
diff --git a/ash/system/audio/volume_view.cc b/ash/common/system/audio/volume_view.cc
similarity index 96%
rename from ash/system/audio/volume_view.cc
rename to ash/common/system/audio/volume_view.cc
index b83600b2a408d0cc2b280e2a9f9750c620f20c53..c7f833fee865576cc9793b54c342c521d5b191ca 100644
--- a/ash/system/audio/volume_view.cc
+++ b/ash/common/system/audio/volume_view.cc
@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/system/audio/volume_view.h"
+#include "ash/common/system/audio/volume_view.h"
#include "ash/common/ash_constants.h"
+#include "ash/common/metrics/user_metrics_action.h"
+#include "ash/common/system/audio/tray_audio.h"
+#include "ash/common/system/audio/tray_audio_delegate.h"
#include "ash/common/system/tray/system_tray_item.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_popup_item_container.h"
-#include "ash/shell.h"
-#include "ash/system/audio/tray_audio.h"
-#include "ash/system/audio/tray_audio_delegate.h"
+#include "ash/common/wm_shell.h"
#include "grit/ash_resources.h"
#include "grit/ash_strings.h"
#include "ui/base/resource/resource_bundle.h"
@@ -252,10 +253,9 @@ void VolumeView::SliderValueChanged(views::Slider* sender,
// 1%, which is beyond cras audio api's granularity for output volume.
if (std::abs(new_volume - current_volume) < 1.0f)
return;
- Shell::GetInstance()->metrics()->RecordUserMetricsAction(
- is_default_view_ ?
- ash::UMA_STATUS_AREA_CHANGED_VOLUME_MENU :
- ash::UMA_STATUS_AREA_CHANGED_VOLUME_POPUP);
+ WmShell::Get()->RecordUserMetricsAction(
+ is_default_view_ ? UMA_STATUS_AREA_CHANGED_VOLUME_MENU
+ : UMA_STATUS_AREA_CHANGED_VOLUME_POPUP);
if (new_volume > current_volume)
HandleVolumeUp(new_volume);
else
« no previous file with comments | « ash/common/system/audio/volume_view.h ('k') | ash/common/system/tray/wm_system_tray_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698