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

Side by Side Diff: ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider.mm

Issue 2603973002: Import Objective C Frameworks (Closed)
Patch Set: only ios Created 3 years, 11 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/install_time_util.mm ('k') | ios/chrome/browser/omaha/omaha_service.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 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
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 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/install_time_util.mm ('k') | ios/chrome/browser/omaha/omaha_service.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698