[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / status_icons / status_tray_mac.mm
blobbec55542dac341f2d861d93d60d8f69fd026e00f
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/cocoa/status_icons/status_tray_mac.h"
7 #include "chrome/browser/ui/cocoa/status_icons/status_icon_mac.h"
9 StatusTray* StatusTray::Create() {
10   return new StatusTrayMac();
13 StatusTrayMac::StatusTrayMac() {
16 StatusIcon* StatusTrayMac::CreatePlatformStatusIcon(
17     StatusIconType type,
18     const gfx::ImageSkia& image,
19     const base::string16& tool_tip) {
20   StatusIcon* icon = new StatusIconMac();
21   icon->SetImage(image);
22   icon->SetToolTip(tool_tip);
23   return icon;