OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // Open the appropriate sync dialog for the given profile (which can be | 50 // Open the appropriate sync dialog for the given profile (which can be |
51 // incognito). |code| should be one of the START_FROM_* codes. | 51 // incognito). |code| should be one of the START_FROM_* codes. |
52 void OpenSyncMyBookmarksDialog( | 52 void OpenSyncMyBookmarksDialog( |
53 Profile* profile, ProfileSyncService::SyncEventCodes code); | 53 Profile* profile, ProfileSyncService::SyncEventCodes code); |
54 | 54 |
55 void AddBoolSyncDetail(ListValue* details, | 55 void AddBoolSyncDetail(ListValue* details, |
56 const std::string& stat_name, | 56 const std::string& stat_name, |
57 bool stat_value); | 57 bool stat_value); |
58 | 58 |
| 59 // |service| can be NULL. |
59 void ConstructAboutInformation(ProfileSyncService* service, | 60 void ConstructAboutInformation(ProfileSyncService* service, |
60 DictionaryValue* strings); | 61 DictionaryValue* strings); |
61 | 62 |
62 void AddIntSyncDetail(ListValue* details, | 63 void AddIntSyncDetail(ListValue* details, |
63 const std::string& stat_name, | 64 const std::string& stat_name, |
64 int64 stat_value); | 65 int64 stat_value); |
65 } // namespace sync_ui_util | 66 } // namespace sync_ui_util |
66 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ | 67 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ |
OLD | NEW |