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

Unified Diff: sync/syncable/write_transaction_info.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « sync/syncable/write_transaction_info.h ('k') | sync/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/write_transaction_info.cc
diff --git a/sync/syncable/write_transaction_info.cc b/sync/syncable/write_transaction_info.cc
deleted file mode 100644
index c7362e387e4e37c424e830843c664aa73d546d19..0000000000000000000000000000000000000000
--- a/sync/syncable/write_transaction_info.cc
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/syncable/write_transaction_info.h"
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include "base/strings/string_number_conversions.h"
-
-namespace syncer {
-namespace syncable {
-
-WriteTransactionInfo::WriteTransactionInfo(
- int64_t id,
- tracked_objects::Location location,
- WriterTag writer,
- ImmutableEntryKernelMutationMap mutations)
- : id(id),
- location_string(location.ToString()),
- writer(writer),
- mutations(mutations) {}
-
-WriteTransactionInfo::WriteTransactionInfo()
- : id(-1), writer(INVALID) {}
-
-WriteTransactionInfo::WriteTransactionInfo(const WriteTransactionInfo& other) =
- default;
-
-WriteTransactionInfo::~WriteTransactionInfo() {}
-
-base::DictionaryValue* WriteTransactionInfo::ToValue(
- size_t max_mutations_size) const {
- base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetString("id", base::Int64ToString(id));
- dict->SetString("location", location_string);
- dict->SetString("writer", WriterTagToString(writer));
- base::Value* mutations_value = NULL;
- const size_t mutations_size = mutations.Get().size();
- if (mutations_size <= max_mutations_size) {
- mutations_value = EntryKernelMutationMapToValue(mutations.Get());
- } else {
- mutations_value =
- new base::StringValue(
- base::SizeTToString(mutations_size) + " mutations");
- }
- dict->Set("mutations", mutations_value);
- return dict;
-}
-
-} // namespace syncable
-} // namespace syncer
« no previous file with comments | « sync/syncable/write_transaction_info.h ('k') | sync/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698