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 #include <cstddef> | 5 #include <cstddef> |
6 #include <cstdio> | 6 #include <cstdio> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 bool DecryptString(const std::string& ciphertext, | 116 bool DecryptString(const std::string& ciphertext, |
117 std::string* plaintext) override { | 117 std::string* plaintext) override { |
118 *plaintext = ciphertext; | 118 *plaintext = ciphertext; |
119 return true; | 119 return true; |
120 } | 120 } |
121 }; | 121 }; |
122 | 122 |
123 std::string ValueToString(const base::Value& value) { | 123 std::string ValueToString(const base::Value& value) { |
124 std::string str; | 124 std::string str; |
125 base::JSONWriter::Write(&value, &str); | 125 base::JSONWriter::Write(value, &str); |
126 return str; | 126 return str; |
127 } | 127 } |
128 | 128 |
129 class LoggingChangeDelegate : public SyncManager::ChangeDelegate { | 129 class LoggingChangeDelegate : public SyncManager::ChangeDelegate { |
130 public: | 130 public: |
131 ~LoggingChangeDelegate() override {} | 131 ~LoggingChangeDelegate() override {} |
132 | 132 |
133 void OnChangesApplied(ModelType model_type, | 133 void OnChangesApplied(ModelType model_type, |
134 int64 model_version, | 134 int64 model_version, |
135 const BaseTransaction* trans, | 135 const BaseTransaction* trans, |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 io_thread.Stop(); | 454 io_thread.Stop(); |
455 return 0; | 455 return 0; |
456 } | 456 } |
457 | 457 |
458 } // namespace | 458 } // namespace |
459 } // namespace syncer | 459 } // namespace syncer |
460 | 460 |
461 int main(int argc, char* argv[]) { | 461 int main(int argc, char* argv[]) { |
462 return syncer::SyncClientMain(argc, argv); | 462 return syncer::SyncClientMain(argc, argv); |
463 } | 463 } |
OLD | NEW |