Commit f05af575 authored by stkhapugin's avatar stkhapugin Committed by Commit bot

[ObjC ARC] Converts ios/chrome/browser/metrics:metrics to ARC.

Automatically generated ARCMigrate commit
Notable issues:None
BUG=624363
TEST=None

Review-Url: https://codereview.chromium.org/2514813002
Cr-Commit-Position: refs/heads/master@{#436289}
parent a27cb356
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
source_set("metrics") { source_set("metrics") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [ sources = [
"field_trial_synchronizer.cc", "field_trial_synchronizer.cc",
"field_trial_synchronizer.h", "field_trial_synchronizer.h",
......
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
#include "ios/chrome/browser/variations/ios_ui_string_overrider_factory.h" #include "ios/chrome/browser/variations/ios_ui_string_overrider_factory.h"
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h" #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace { namespace {
void PostStoreMetricsClientInfo(const metrics::ClientInfo& client_info) {} void PostStoreMetricsClientInfo(const metrics::ClientInfo& client_info) {}
......
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
#import "ios/chrome/browser/crash_report/crash_report_background_uploader.h" #import "ios/chrome/browser/crash_report/crash_report_background_uploader.h"
#import "ios/chrome/browser/metrics/previous_session_info.h" #import "ios/chrome/browser/metrics/previous_session_info.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace { namespace {
// Logs |type| in the shutdown type histogram. // Logs |type| in the shutdown type histogram.
......
...@@ -5,11 +5,14 @@ ...@@ -5,11 +5,14 @@
#import "ios/chrome/browser/metrics/previous_session_info.h" #import "ios/chrome/browser/metrics/previous_session_info.h"
#include "base/logging.h" #include "base/logging.h"
#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h" #include "base/strings/sys_string_conversions.h"
#include "components/version_info/version_info.h" #include "components/version_info/version_info.h"
#import "ios/chrome/browser/metrics/previous_session_info_private.h" #import "ios/chrome/browser/metrics/previous_session_info_private.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace { namespace {
// Key in the NSUserDefaults for a string value that stores the version of the // Key in the NSUserDefaults for a string value that stores the version of the
...@@ -63,7 +66,6 @@ static PreviousSessionInfo* gSharedInstance = nil; ...@@ -63,7 +66,6 @@ static PreviousSessionInfo* gSharedInstance = nil;
} }
+ (void)resetSharedInstanceForTesting { + (void)resetSharedInstanceForTesting {
[gSharedInstance release];
gSharedInstance = nil; gSharedInstance = nil;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment