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

Side by Side Diff: components/metrics/data_use_tracker.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … Created 4 years, 7 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_METRICS_DATA_USE_TRACKER_H_ 5 #ifndef COMPONENTS_METRICS_DATA_USE_TRACKER_H_
6 #define COMPONENTS_METRICS_DATA_USE_TRACKER_H_ 6 #define COMPONENTS_METRICS_DATA_USE_TRACKER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
16 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
17 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
18 #include "base/time/time.h" 17 #include "base/time/time.h"
19 #include "components/prefs/pref_registry_simple.h" 18 #include "components/prefs/pref_registry_simple.h"
20 #include "components/prefs/pref_service.h" 19 #include "components/prefs/pref_service.h"
21 20
22 namespace metrics { 21 namespace metrics {
23 22
24 typedef base::Callback<void(const std::string&, int, bool)> 23 typedef base::Callback<void(const std::string&, int, bool)>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 90
92 base::ThreadChecker thread_checker_; 91 base::ThreadChecker thread_checker_;
93 92
94 base::WeakPtrFactory<DataUseTracker> weak_ptr_factory_; 93 base::WeakPtrFactory<DataUseTracker> weak_ptr_factory_;
95 94
96 DISALLOW_COPY_AND_ASSIGN(DataUseTracker); 95 DISALLOW_COPY_AND_ASSIGN(DataUseTracker);
97 }; 96 };
98 97
99 } // namespace metrics 98 } // namespace metrics
100 #endif // COMPONENTS_METRICS_DATA_USE_TRACKER_H_ 99 #endif // COMPONENTS_METRICS_DATA_USE_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698