summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_metrics_mac.mm
blob: dd931b1f295c2dd6c3c3ec9ff708a3a3f8543141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2015 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 "chrome/browser/profiles/profile_metrics.h"

#include <stddef.h>
#include <stdint.h>

#include "base/numerics/safe_conversions.h"
#include "chrome/browser/mac/keystone_glue.h"

void ProfileMetrics::UpdateReportedOSProfileStatistics(
    size_t active, size_t signedin) {
  if (base::IsValueInRangeForNumericType<uint32_t>(active) &&
      base::IsValueInRangeForNumericType<uint32_t>(signedin)) {
    [[KeystoneGlue defaultKeystoneGlue]
        updateProfileCountsWithNumProfiles:active
                       numSignedInProfiles:signedin];
  }
}