QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / components / sync_driver / about_sync_util.h
blob052df7c63d58227e89c33d6f6bc28ed618fcbeb3
1 // Copyright 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 COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "components/version_info/version_info.h"
11 class SigninManagerBase;
13 namespace base {
14 class DictionaryValue;
17 namespace sync_driver {
18 class SyncService;
21 // These strings are used from logs to pull out specific data from sync; we
22 // don't want these to ever go out of sync between the logs and sync util.
23 extern const char kIdentityTitle[];
24 extern const char kDetailsKey[];
26 namespace sync_ui_util {
27 // This function returns a DictionaryValue which contains all the information
28 // required to populate the 'About' tab of about:sync.
29 // Note that |service| may be NULL.
30 scoped_ptr<base::DictionaryValue> ConstructAboutInformation(
31 sync_driver::SyncService* service,
32 SigninManagerBase* signin,
33 version_info::Channel channel);
36 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_