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

Unified Diff: ash/system/tray/default_system_tray_delegate.cc

Issue 2731873002: Revert "chromeos: Move files in //ash/common to //ash, part 1" (Closed)
Patch Set: Created 3 years, 9 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/system/tray/default_system_tray_delegate.h ('k') | ash/system/tray/fixed_sized_image_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/default_system_tray_delegate.cc
diff --git a/ash/system/tray/default_system_tray_delegate.cc b/ash/system/tray/default_system_tray_delegate.cc
deleted file mode 100644
index d4e1e25647b5e3c0e968b1605316145328ee882b..0000000000000000000000000000000000000000
--- a/ash/system/tray/default_system_tray_delegate.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/system/tray/default_system_tray_delegate.h"
-
-#include <string>
-
-namespace ash {
-
-DefaultSystemTrayDelegate::DefaultSystemTrayDelegate()
- : bluetooth_enabled_(true) {}
-
-DefaultSystemTrayDelegate::~DefaultSystemTrayDelegate() {}
-
-LoginStatus DefaultSystemTrayDelegate::GetUserLoginStatus() const {
- return LoginStatus::USER;
-}
-
-std::string DefaultSystemTrayDelegate::GetSupervisedUserManager() const {
- if (!IsUserSupervised())
- return std::string();
- return "manager@chrome.com";
-}
-
-bool DefaultSystemTrayDelegate::IsUserSupervised() const {
- return GetUserLoginStatus() == LoginStatus::SUPERVISED;
-}
-
-bool DefaultSystemTrayDelegate::ShouldShowSettings() const {
- return true;
-}
-
-bool DefaultSystemTrayDelegate::ShouldShowNotificationTray() const {
- return true;
-}
-
-void DefaultSystemTrayDelegate::ToggleBluetooth() {
- bluetooth_enabled_ = !bluetooth_enabled_;
-}
-
-bool DefaultSystemTrayDelegate::IsBluetoothDiscovering() const {
- return false;
-}
-
-bool DefaultSystemTrayDelegate::GetBluetoothAvailable() {
- return true;
-}
-
-bool DefaultSystemTrayDelegate::GetBluetoothEnabled() {
- return bluetooth_enabled_;
-}
-
-bool DefaultSystemTrayDelegate::GetBluetoothDiscovering() {
- return false;
-}
-
-int DefaultSystemTrayDelegate::GetSystemTrayMenuWidth() {
- // This is the default width for English languages.
- return 300;
-}
-
-} // namespace ash
« no previous file with comments | « ash/system/tray/default_system_tray_delegate.h ('k') | ash/system/tray/fixed_sized_image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698