1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_
6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_
10 #include "chrome/browser/sync/sync_ui_util.h"
12 #import <Cocoa/Cocoa.h>
16 namespace sync_ui_util
{
18 // Updates a bookmark sync UI item (expected to be a menu item). This is
19 // called every time a menu containing a sync UI item is displayed.
20 void UpdateSyncItem(id syncItem
, BOOL syncEnabled
, Profile
* profile
);
22 // This function (used by UpdateSyncItem) is only exposed for testing.
23 // Just use UpdateSyncItem() instead.
24 void UpdateSyncItemForStatus(id syncItem
, BOOL syncEnabled
,
25 sync_ui_util::MessageType status
,
26 const std::string
& userName
);
28 } // namespace sync_ui_util
30 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_MAC_H_