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

Unified Diff: components/sync/core_impl/protocol_event_buffer.cc

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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: components/sync/core_impl/protocol_event_buffer.cc
diff --git a/components/sync/core_impl/protocol_event_buffer.cc b/components/sync/core_impl/protocol_event_buffer.cc
deleted file mode 100644
index aefc85862f8efe6da97d33d1e2d6f8a732a670d5..0000000000000000000000000000000000000000
--- a/components/sync/core_impl/protocol_event_buffer.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 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 "components/sync/core_impl/protocol_event_buffer.h"
-
-#include "components/sync/engine/events/protocol_event.h"
-
-namespace syncer {
-
-const size_t ProtocolEventBuffer::kBufferSize = 6;
-
-ProtocolEventBuffer::ProtocolEventBuffer() {}
-
-ProtocolEventBuffer::~ProtocolEventBuffer() {}
-
-void ProtocolEventBuffer::RecordProtocolEvent(const ProtocolEvent& event) {
- buffer_.push_back(event.Clone());
- if (buffer_.size() > kBufferSize)
- buffer_.pop_front();
-}
-
-std::vector<std::unique_ptr<ProtocolEvent>>
-ProtocolEventBuffer::GetBufferedProtocolEvents() const {
- std::vector<std::unique_ptr<ProtocolEvent>> ret;
- for (auto& event : buffer_)
- ret.push_back(event->Clone());
-
- return ret;
-}
-
-} // namespace syncer
« no previous file with comments | « components/sync/core_impl/protocol_event_buffer.h ('k') | components/sync/core_impl/protocol_event_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698