Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: sync/tools/sync_client.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/test/fake_server/fake_server_verifier.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sync/test/fake_server/fake_server_verifier.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698