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

Unified Diff: sync/internal_api/public/sessions/sync_session_snapshot.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: fix platform specific stuff 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/sessions/sync_session_snapshot.cc
diff --git a/sync/internal_api/public/sessions/sync_session_snapshot.cc b/sync/internal_api/public/sessions/sync_session_snapshot.cc
index 33808826527b230e7c1336d2bb5dd559eba62358..c733f35a5675f4099d9aa2e38886e18a2d4880d1 100644
--- a/sync/internal_api/public/sessions/sync_session_snapshot.cc
+++ b/sync/internal_api/public/sessions/sync_session_snapshot.cc
@@ -103,7 +103,7 @@ scoped_ptr<base::DictionaryValue> SyncSessionSnapshot::ToValue() const {
std::string SyncSessionSnapshot::ToString() const {
std::string json;
base::JSONWriter::WriteWithOptions(
- ToValue().get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
+ *ToValue(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
return json;
}

Powered by Google App Engine
This is Rietveld 408576698