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

Unified Diff: ash/common/system/chromeos/tray_tracing.cc

Issue 2091953002: mash: Move TrayTracing to //ash/common/system/chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/chromeos/tray_tracing.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/chromeos/tray_tracing.cc
diff --git a/ash/system/chromeos/tray_tracing.cc b/ash/common/system/chromeos/tray_tracing.cc
similarity index 89%
rename from ash/system/chromeos/tray_tracing.cc
rename to ash/common/system/chromeos/tray_tracing.cc
index 7918623f8bc22789a84343d819443a93f3f40b2c..9948cec1e32dde35f94259c030066bf4fa34564f 100644
--- a/ash/system/chromeos/tray_tracing.cc
+++ b/ash/common/system/chromeos/tray_tracing.cc
@@ -2,16 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/system/chromeos/tray_tracing.h"
+#include "ash/common/system/chromeos/tray_tracing.h"
#include "ash/common/system/tray/actionable_view.h"
#include "ash/common/system/tray/fixed_sized_image_view.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/tray_constants.h"
+#include "ash/common/system/tray/wm_system_tray_notifier.h"
#include "ash/common/wm_shell.h"
-#include "ash/shell.h"
#include "ash/system/tray/system_tray.h"
-#include "ash/system/tray/system_tray_notifier.h"
#include "grit/ash_resources.h"
#include "grit/ash_strings.h"
#include "ui/base/resource/resource_bundle.h"
@@ -67,13 +66,12 @@ class DefaultTracingView : public ActionableView {
TrayTracing::TrayTracing(SystemTray* system_tray)
: TrayImageItem(system_tray, IDR_AURA_UBER_TRAY_TRACING),
default_(NULL) {
- DCHECK(Shell::GetInstance()->delegate());
DCHECK(system_tray);
- Shell::GetInstance()->system_tray_notifier()->AddTracingObserver(this);
+ WmShell::Get()->system_tray_notifier()->AddTracingObserver(this);
}
TrayTracing::~TrayTracing() {
- Shell::GetInstance()->system_tray_notifier()->RemoveTracingObserver(this);
+ WmShell::Get()->system_tray_notifier()->RemoveTracingObserver(this);
}
void TrayTracing::SetTrayIconVisible(bool visible) {
« no previous file with comments | « ash/common/system/chromeos/tray_tracing.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