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

Side by Side Diff: ios/chrome/common/channel_info.mm

Issue 2689513002: [ObjC ARC] Converts ios/chrome/common:common to ARC. (Closed)
Patch Set: copy Created 3 years, 10 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 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/common/channel_info.h" 5 #include "ios/chrome/common/channel_info.h"
6 6
7 #include <dispatch/dispatch.h> 7 #include <dispatch/dispatch.h>
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import "base/mac/bundle_locations.h" 10 #import "base/mac/bundle_locations.h"
11 #include "base/profiler/scoped_tracker.h" 11 #include "base/profiler/scoped_tracker.h"
12 #import "base/strings/sys_string_conversions.h" 12 #import "base/strings/sys_string_conversions.h"
13 #include "components/version_info/version_info.h" 13 #include "components/version_info/version_info.h"
14 14
15 #if !defined(__has_feature) || !__has_feature(objc_arc)
16 #error "This file requires ARC support."
17 #endif
18
15 namespace { 19 namespace {
16 20
17 #if defined(GOOGLE_CHROME_BUILD) 21 #if defined(GOOGLE_CHROME_BUILD)
18 // Channel of the running application, initialized by the first call to 22 // Channel of the running application, initialized by the first call to
19 // GetChannel() and cached for the whole application lifetime. 23 // GetChannel() and cached for the whole application lifetime.
20 version_info::Channel g_channel = version_info::Channel::UNKNOWN; 24 version_info::Channel g_channel = version_info::Channel::UNKNOWN;
21 #endif 25 #endif
22 26
23 } // namespace 27 } // namespace
24 28
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } else if ([channel isEqualToString:@"canary"]) { 83 } else if ([channel isEqualToString:@"canary"]) {
80 g_channel = version_info::Channel::CANARY; 84 g_channel = version_info::Channel::CANARY;
81 } 85 }
82 }); 86 });
83 87
84 return g_channel; 88 return g_channel;
85 #else 89 #else
86 return version_info::Channel::UNKNOWN; 90 return version_info::Channel::UNKNOWN;
87 #endif 91 #endif
88 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698