OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/metrics/mobile_session_shutdown_metrics_provider.h" | 5 #include "ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
11 #include "components/metrics/metrics_service.h" | 11 #include "components/metrics/metrics_service.h" |
12 #include "ios/chrome/browser/crash_report/breakpad_helper.h" | 12 #include "ios/chrome/browser/crash_report/breakpad_helper.h" |
13 #import "ios/chrome/browser/crash_report/crash_report_background_uploader.h" | 13 #import "ios/chrome/browser/crash_report/crash_report_background_uploader.h" |
14 #import "ios/chrome/browser/metrics/previous_session_info.h" | 14 #import "ios/chrome/browser/metrics/previous_session_info.h" |
15 | 15 |
16 #if !defined(__has_feature) || !__has_feature(objc_arc) | 16 #if !defined(__has_feature) || !__has_feature(objc_arc) |
17 #error "This file requires ARC support." | 17 #error "This file requires ARC support." |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bool MobileSessionShutdownMetricsProvider:: | 87 bool MobileSessionShutdownMetricsProvider:: |
88 HasUploadedCrashReportsInBackground() { | 88 HasUploadedCrashReportsInBackground() { |
89 return [CrashReportBackgroundUploader hasUploadedCrashReportsInBackground]; | 89 return [CrashReportBackgroundUploader hasUploadedCrashReportsInBackground]; |
90 } | 90 } |
91 | 91 |
92 bool MobileSessionShutdownMetricsProvider:: | 92 bool MobileSessionShutdownMetricsProvider:: |
93 ReceivedMemoryWarningBeforeLastShutdown() { | 93 ReceivedMemoryWarningBeforeLastShutdown() { |
94 return [[PreviousSessionInfo sharedInstance] | 94 return [[PreviousSessionInfo sharedInstance] |
95 didSeeMemoryWarningShortlyBeforeTerminating]; | 95 didSeeMemoryWarningShortlyBeforeTerminating]; |
96 } | 96 } |
OLD | NEW |