• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5part of reporting;
6
7class DisabledUsage implements Usage {
8  @override
9  bool get isFirstRun => false;
10
11  @override
12  bool get suppressAnalytics => true;
13
14  @override
15  set suppressAnalytics(bool value) { }
16
17  @override
18  bool get enabled => false;
19
20  @override
21  set enabled(bool value) { }
22
23  @override
24  String get clientId => null;
25
26  @override
27  void sendCommand(String command, { Map<String, String> parameters }) { }
28
29  @override
30  void sendEvent(String category, String parameter, { Map<String, String> parameters }) { }
31
32  @override
33  void sendTiming(String category, String variableName, Duration duration, { String label }) { }
34
35  @override
36  void sendException(dynamic exception) { }
37
38  @override
39  Stream<Map<String, dynamic>> get onSend => null;
40
41  @override
42  Future<void> ensureAnalyticsSent() => Future<void>.value();
43
44  @override
45  void printWelcome() { }
46}
47