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

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

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 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 #include "ios/chrome/browser/ios_chrome_main_parts.h" 5 #include "ios/chrome/browser/ios_chrome_main_parts.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/metrics/user_metrics.h" 12 #include "base/metrics/user_metrics.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/sequenced_task_runner.h"
14 #include "base/time/default_tick_clock.h" 15 #include "base/time/default_tick_clock.h"
15 #include "components/content_settings/core/browser/cookie_settings.h" 16 #include "components/content_settings/core/browser/cookie_settings.h"
16 #include "components/content_settings/core/common/content_settings_pattern.h" 17 #include "components/content_settings/core/common/content_settings_pattern.h"
17 #include "components/flags_ui/pref_service_flags_storage.h" 18 #include "components/flags_ui/pref_service_flags_storage.h"
18 #include "components/language_usage_metrics/language_usage_metrics.h" 19 #include "components/language_usage_metrics/language_usage_metrics.h"
19 #include "components/metrics/metrics_service.h" 20 #include "components/metrics/metrics_service.h"
20 #include "components/metrics/profiler/ios/ios_tracking_synchronizer_delegate.h" 21 #include "components/metrics/profiler/ios/ios_tracking_synchronizer_delegate.h"
21 #include "components/metrics/profiler/tracking_synchronizer.h" 22 #include "components/metrics/profiler/tracking_synchronizer.h"
22 #include "components/metrics_services_manager/metrics_services_manager.h" 23 #include "components/metrics_services_manager/metrics_services_manager.h"
23 #include "components/open_from_clipboard/clipboard_recent_content.h" 24 #include "components/open_from_clipboard/clipboard_recent_content.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 283
283 void IOSChromeMainParts::StartMetricsRecording() { 284 void IOSChromeMainParts::StartMetricsRecording() {
284 bool wifiOnly = local_state_->GetBoolean(prefs::kMetricsReportingWifiOnly); 285 bool wifiOnly = local_state_->GetBoolean(prefs::kMetricsReportingWifiOnly);
285 bool isConnectionCellular = net::NetworkChangeNotifier::IsConnectionCellular( 286 bool isConnectionCellular = net::NetworkChangeNotifier::IsConnectionCellular(
286 net::NetworkChangeNotifier::GetConnectionType()); 287 net::NetworkChangeNotifier::GetConnectionType());
287 bool mayUpload = !wifiOnly || !isConnectionCellular; 288 bool mayUpload = !wifiOnly || !isConnectionCellular;
288 289
289 application_context_->GetMetricsServicesManager()->UpdateUploadPermissions( 290 application_context_->GetMetricsServicesManager()->UpdateUploadPermissions(
290 mayUpload); 291 mayUpload);
291 } 292 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.mm ('k') | ios/chrome/browser/net/chrome_cookie_store_ios_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698