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

Side by Side Diff: ios/chrome/app/startup/background_upload_alert.mm

Issue 2702253002: [ObjC ARC] Converts ios/chrome/app/startup:startup to ARC. (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/app/startup/BUILD.gn ('k') | ios/chrome/app/startup/chrome_main_starter.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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/app/startup/background_upload_alert.h" 5 #include "ios/chrome/app/startup/background_upload_alert.h"
6 6
7 #include "ios/chrome/browser/experimental_flags.h" 7 #include "ios/chrome/browser/experimental_flags.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
9 @implementation BackgroundUploadAlert 13 @implementation BackgroundUploadAlert
10 14
11 + (void)setupBackgroundUploadAlert { 15 + (void)setupBackgroundUploadAlert {
12 if (experimental_flags::IsAlertOnBackgroundUploadEnabled()) { 16 if (experimental_flags::IsAlertOnBackgroundUploadEnabled()) {
13 if ([UIApplication instancesRespondToSelector: 17 if ([UIApplication instancesRespondToSelector:
14 @selector(registerUserNotificationSettings:)]) { 18 @selector(registerUserNotificationSettings:)]) {
15 [[UIApplication sharedApplication] 19 [[UIApplication sharedApplication]
16 registerUserNotificationSettings: 20 registerUserNotificationSettings:
17 [UIUserNotificationSettings 21 [UIUserNotificationSettings
18 settingsForTypes:UIUserNotificationTypeAlert | 22 settingsForTypes:UIUserNotificationTypeAlert |
19 UIUserNotificationTypeBadge | 23 UIUserNotificationTypeBadge |
20 UIUserNotificationTypeSound 24 UIUserNotificationTypeSound
21 categories:nil]]; 25 categories:nil]];
22 } 26 }
23 } 27 }
24 } 28 }
25 29
26 @end 30 @end
OLDNEW
« no previous file with comments | « ios/chrome/app/startup/BUILD.gn ('k') | ios/chrome/app/startup/chrome_main_starter.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698