summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/about_sync_util.h
blob: 108c6dc5c4748f82dc6cfea390140a255711555d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2012 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.

#ifndef CHROME_BROWSER_SYNC_ABOUT_SYNC_UTIL_H_
#define CHROME_BROWSER_SYNC_ABOUT_SYNC_UTIL_H_

#include "base/memory/scoped_ptr.h"

class ProfileSyncService;

namespace base {
class DictionaryValue;
}

// These strings are used from logs to pull out specific data from sync; we
// don't want these to ever go out of sync between the logs and sync util.
extern const char kIdentityTitle[];
extern const char kDetailsKey[];

namespace sync_ui_util {
// This function returns a DictionaryValue which contains all the information
// required to populate the 'About' tab of about:sync.
// Note that |service| may be NULL.
scoped_ptr<base::DictionaryValue> ConstructAboutInformation(
    ProfileSyncService* service);
}

#endif  // CHROME_BROWSER_SYNC_ABOUT_SYNC_UTIL_H_