Index: chrome/browser/sync/tools/sync_listen_notifications.cc |
diff --git a/chrome/browser/sync/tools/sync_listen_notifications.cc b/chrome/browser/sync/tools/sync_listen_notifications.cc |
index 899798ef66d0922d346b5a1fa05a185e69e95857..4adf374191579cf77d833e5240d01106ea8668c8 100644 |
--- a/chrome/browser/sync/tools/sync_listen_notifications.cc |
+++ b/chrome/browser/sync/tools/sync_listen_notifications.cc |
@@ -17,6 +17,7 @@ |
#include "base/task.h" |
#include "chrome/browser/sync/notification_method.h" |
#include "chrome/browser/sync/sync_constants.h" |
+#include "chrome/browser/sync/tools/sync_constants.h" |
#include "chrome/common/net/notifier/base/task_pump.h" |
#include "chrome/common/net/notifier/communicator/xmpp_socket_adapter.h" |
#include "chrome/common/net/notifier/listener/listen_task.h" |
@@ -753,13 +754,11 @@ int main(int argc, char* argv[]) { |
MessageLoopForIO message_loop; |
// TODO(akalin): Make this configurable. |
- // TODO(akalin): Store these constants in a header somewhere (maybe |
- // browser/sync/protocol). |
std::vector<std::string> data_types; |
- data_types.push_back("AUTOFILL"); |
- data_types.push_back("BOOKMARK"); |
- data_types.push_back("THEME"); |
- data_types.push_back("PREFERENCE"); |
+ data_types.push_back(sync_tools::kAutoFillType); |
+ data_types.push_back(sync_tools::kBookmarkType); |
+ data_types.push_back(sync_tools::kThemeType); |
+ data_types.push_back(sync_tools::kPreferenceType); |
// Connect and listen. |
LegacyNotifierDelegate legacy_notifier_delegate; |