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

Side by Side Diff: components/sync_driver/device_count_metrics_provider.h

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback Created 4 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_COUNT_METRICS_PROVIDER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_COUNT_METRICS_PROVIDER_H_
6 #define COMPONENTS_SYNC_DRIVER_DEVICE_COUNT_METRICS_PROVIDER_H_ 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_COUNT_METRICS_PROVIDER_H_
7 7
8 #include <memory>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "components/metrics/metrics_provider.h" 13 #include "components/metrics/metrics_provider.h"
14 14
15 namespace sync_driver { 15 namespace sync_driver {
16 16
17 class DeviceInfoTracker; 17 class DeviceInfoTracker;
18 18
19 // A registerable metrics provider that will emit the number of active syncing 19 // A registerable metrics provider that will emit the number of active syncing
20 // devices a user has upon UMA upload. When there are multiple active profiles 20 // devices a user has upon UMA upload. When there are multiple active profiles
21 // that are aware of syncable devices, the largest count is used. This approach 21 // that are aware of syncable devices, the largest count is used. This approach
22 // is useful for several reasons. We're significantly interested in "power" 22 // is useful for several reasons. We're significantly interested in "power"
(...skipping 21 matching lines...) Expand all
44 int MaxActiveDeviceCount() const; 44 int MaxActiveDeviceCount() const;
45 45
46 const ProvideTrackersCallback provide_trackers_; 46 const ProvideTrackersCallback provide_trackers_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(DeviceCountMetricsProvider); 48 DISALLOW_COPY_AND_ASSIGN(DeviceCountMetricsProvider);
49 }; 49 };
50 50
51 } // namespace sync_driver 51 } // namespace sync_driver
52 52
53 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_COUNT_METRICS_PROVIDER_H_ 53 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_COUNT_METRICS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698