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

Side by Side Diff: components/sync/user_events/no_op_user_event_service.cc

Issue 2909283003: [Sync] Split UserEventService into interface and impl, add fake impl, add unit tests. (Closed)
Patch Set: Added a NoOp service to handle OffTheRecord. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
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
5 #include "components/sync/user_events/no_op_user_event_service.h"
6
7 #include "base/memory/weak_ptr.h"
8
9 using sync_pb::UserEventSpecifics;
10
11 namespace syncer {
12
13 NoOpUserEventService::NoOpUserEventService() {}
14
15 NoOpUserEventService::~NoOpUserEventService() {}
16
17 void NoOpUserEventService::RecordUserEvent(
18 std::unique_ptr<UserEventSpecifics> specifics) {}
19
20 void NoOpUserEventService::RecordUserEvent(
21 const UserEventSpecifics& specifics) {}
22
23 base::WeakPtr<ModelTypeSyncBridge> NoOpUserEventService::GetSyncBridge() {
24 return base::WeakPtr<ModelTypeSyncBridge>();
25 }
26
27 void NoOpUserEventService::RegisterDependentFieldTrial(
28 const std::string& trial_name,
29 UserEventSpecifics::EventCase event_case) {}
30
31 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/user_events/no_op_user_event_service.h ('k') | components/sync/user_events/user_event_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698