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

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

Issue 2609543002: Refactor setup of background upload alert from MC to separate file. (Closed)
Patch Set: 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/app/startup/background_upload_alert.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ios/chrome/app/startup/background_upload_alert.h"
6
7 #include "ios/chrome/browser/experimental_flags.h"
8
9 @implementation BackgroundUploadAlert
10
11 + (void)setupBackgroundUploadAlert {
12 if (experimental_flags::IsAlertOnBackgroundUploadEnabled()) {
13 if ([UIApplication instancesRespondToSelector:
14 @selector(registerUserNotificationSettings:)]) {
15 [[UIApplication sharedApplication]
16 registerUserNotificationSettings:
17 [UIUserNotificationSettings
18 settingsForTypes:UIUserNotificationTypeAlert |
19 UIUserNotificationTypeBadge |
20 UIUserNotificationTypeSound
21 categories:nil]];
22 }
23 }
24 }
25
26 @end
OLDNEW
« no previous file with comments | « ios/chrome/app/startup/background_upload_alert.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698