OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void ConstructAboutInformation(ProfileSyncService* service, | 76 void ConstructAboutInformation(ProfileSyncService* service, |
77 DictionaryValue* strings); | 77 DictionaryValue* strings); |
78 | 78 |
79 void AddIntSyncDetail(base::ListValue* details, | 79 void AddIntSyncDetail(base::ListValue* details, |
80 const std::string& stat_name, | 80 const std::string& stat_name, |
81 int64 stat_value); | 81 int64 stat_value); |
82 | 82 |
83 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, | 83 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, |
84 const std::string& stat_value); | 84 const std::string& stat_value); |
85 | 85 |
86 // Returns a string describing the chrome version environment. Version format: | |
87 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> | |
88 // If version information is unavailable, returns "invalid." | |
89 // TODO(zea): this approximately matches MakeUserAgentForSyncApi in | |
90 // sync_backend_host.cc. Unify the two if possible. | |
91 std::string GetVersionString(); | |
92 | |
93 } // namespace sync_ui_util | 86 } // namespace sync_ui_util |
94 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 87 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
OLD | NEW |