blob: f2564155117bd63e385efe0d5a8dd177c4ef115c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012 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 "remoting/host/usage_stats_consent.h"
#include <string>
#include "base/logging.h"
namespace remoting {
bool GetUsageStatsConsent(bool* allowed, bool* set_by_policy) {
*set_by_policy = false;
// For now, leave Breakpad disabled.
// TODO(lambroslambrou): Enable it for users who have given consent.
*allowed = false;
return true;
}
bool IsUsageStatsAllowed() {
bool allowed;
bool set_by_policy;
return GetUsageStatsConsent(&allowed, &set_by_policy) && allowed;
}
bool SetUsageStatsConsent(bool allowed) {
NOTIMPLEMENTED();
return false;
}
} // namespace remoting
|