no_op_user_event_service.cc 770 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/sync_user_events/no_op_user_event_service.h"
  5. #include "base/memory/weak_ptr.h"
  6. using sync_pb::UserEventSpecifics;
  7. namespace syncer {
  8. NoOpUserEventService::NoOpUserEventService() = default;
  9. NoOpUserEventService::~NoOpUserEventService() = default;
  10. void NoOpUserEventService::RecordUserEvent(
  11. std::unique_ptr<UserEventSpecifics> specifics) {}
  12. void NoOpUserEventService::RecordUserEvent(
  13. const UserEventSpecifics& specifics) {}
  14. base::WeakPtr<syncer::ModelTypeControllerDelegate>
  15. NoOpUserEventService::GetControllerDelegate() {
  16. return nullptr;
  17. }
  18. } // namespace syncer