Index: components/sync/engine/events/get_updates_response_event.cc |
diff --git a/components/sync/engine/events/get_updates_response_event.cc b/components/sync/engine/events/get_updates_response_event.cc |
deleted file mode 100644 |
index a91b7b9d3cfdedfb42c08c78a1a52a254a428e1c..0000000000000000000000000000000000000000 |
--- a/components/sync/engine/events/get_updates_response_event.cc |
+++ /dev/null |
@@ -1,53 +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/engine/events/get_updates_response_event.h" |
- |
-#include "base/strings/stringprintf.h" |
-#include "components/sync/protocol/proto_value_conversions.h" |
- |
-namespace syncer { |
- |
-GetUpdatesResponseEvent::GetUpdatesResponseEvent( |
- base::Time timestamp, |
- const sync_pb::ClientToServerResponse& response, |
- SyncerError error) |
- : timestamp_(timestamp), response_(response), error_(error) {} |
- |
-GetUpdatesResponseEvent::~GetUpdatesResponseEvent() {} |
- |
-base::Time GetUpdatesResponseEvent::GetTimestamp() const { |
- return timestamp_; |
-} |
- |
-std::string GetUpdatesResponseEvent::GetType() const { |
- return "GetUpdates Response"; |
-} |
- |
-std::string GetUpdatesResponseEvent::GetDetails() const { |
- switch (error_) { |
- case SYNCER_OK: |
- return base::StringPrintf("Received %d update(s).", |
- response_.get_updates().entries_size()); |
- case SERVER_MORE_TO_DOWNLOAD: |
- return base::StringPrintf("Received %d update(s). Some updates remain.", |
- response_.get_updates().entries_size()); |
- default: |
- return base::StringPrintf("Received error: %s", |
- GetSyncerErrorString(error_)); |
- } |
-} |
- |
-std::unique_ptr<base::DictionaryValue> |
-GetUpdatesResponseEvent::GetProtoMessage() const { |
- return std::unique_ptr<base::DictionaryValue>( |
- ClientToServerResponseToValue(response_, false)); |
-} |
- |
-std::unique_ptr<ProtocolEvent> GetUpdatesResponseEvent::Clone() const { |
- return std::unique_ptr<ProtocolEvent>( |
- new GetUpdatesResponseEvent(timestamp_, response_, error_)); |
-} |
- |
-} // namespace syncer |