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

Side by Side Diff: ios/chrome/browser/ios_chrome_main_parts.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.mm ('k') | ios/chrome/browser/ios_chrome_main_parts.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ 5 #ifndef IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_
6 #define IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ 6 #define IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_
7 7
8 #include <memory>
9
8 #include "base/command_line.h" 10 #include "base/command_line.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
12 #include "ios/web/public/app/web_main_parts.h" 13 #include "ios/web/public/app/web_main_parts.h"
13 14
14 class ApplicationContextImpl; 15 class ApplicationContextImpl;
15 class PrefService; 16 class PrefService;
16 17
17 namespace metrics { 18 namespace metrics {
18 class TrackingSynchronizer; 19 class TrackingSynchronizer;
19 } 20 }
20 21
(...skipping 18 matching lines...) Expand all
39 // creation of field trials. Call only after labs have been converted to 40 // creation of field trials. Call only after labs have been converted to
40 // switches. 41 // switches.
41 void SetUpMetricsAndFieldTrials(); 42 void SetUpMetricsAndFieldTrials();
42 43
43 // Starts recording of metrics. This can only be called after we have a file 44 // Starts recording of metrics. This can only be called after we have a file
44 // thread. 45 // thread.
45 void StartMetricsRecording(); 46 void StartMetricsRecording();
46 47
47 const base::CommandLine& parsed_command_line_; 48 const base::CommandLine& parsed_command_line_;
48 49
49 scoped_ptr<ApplicationContextImpl> application_context_; 50 std::unique_ptr<ApplicationContextImpl> application_context_;
50 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_; 51 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_;
51 52
52 // Statistical testing infrastructure for the entire browser. NULL until 53 // Statistical testing infrastructure for the entire browser. NULL until
53 // SetUpMetricsAndFieldTrials is called. 54 // SetUpMetricsAndFieldTrials is called.
54 scoped_ptr<base::FieldTrialList> field_trial_list_; 55 std::unique_ptr<base::FieldTrialList> field_trial_list_;
55 56
56 PrefService* local_state_; 57 PrefService* local_state_;
57 58
58 // Initialized in SetupMetricsAndFieldTrials. 59 // Initialized in SetupMetricsAndFieldTrials.
59 scoped_ptr<ios::FieldTrialSynchronizer> field_trial_synchronizer_; 60 std::unique_ptr<ios::FieldTrialSynchronizer> field_trial_synchronizer_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(IOSChromeMainParts); 62 DISALLOW_COPY_AND_ASSIGN(IOSChromeMainParts);
62 }; 63 };
63 64
64 #endif // IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_ 65 #endif // IOS_CHROME_BROWSER_IOS_CHROME_MAIN_PARTS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.mm ('k') | ios/chrome/browser/ios_chrome_main_parts.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698