OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/string16.h" | 10 #include "base/string16.h" |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 #include "chrome/browser/sync/profile_sync_service.h" | 12 #include "chrome/browser/sync/profile_sync_service.h" |
14 | 13 |
15 class Browser; | 14 class Browser; |
16 class Profile; | 15 class Profile; |
17 | 16 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 87 |
89 // Returns a string describing the chrome version environment. Version format: | 88 // Returns a string describing the chrome version environment. Version format: |
90 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> | 89 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> |
91 // If version information is unavailable, returns "invalid." | 90 // If version information is unavailable, returns "invalid." |
92 // TODO(zea): this approximately matches MakeUserAgentForSyncApi in | 91 // TODO(zea): this approximately matches MakeUserAgentForSyncApi in |
93 // sync_backend_host.cc. Unify the two if possible. | 92 // sync_backend_host.cc. Unify the two if possible. |
94 std::string GetVersionString(); | 93 std::string GetVersionString(); |
95 | 94 |
96 } // namespace sync_ui_util | 95 } // namespace sync_ui_util |
97 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 96 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
OLD | NEW |