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

Unified Diff: ios/chrome/app/main_controller.mm

Issue 2609543002: Refactor setup of background upload alert from MC to separate file. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/app/startup/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/main_controller.mm
diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
index b88d59bcc4b3e6a97fbb4127ac9bf9910cc227d5..e5651274ac569239c4705c2310f687f30f79f40b 100644
--- a/ios/chrome/app/main_controller.mm
+++ b/ios/chrome/app/main_controller.mm
@@ -45,6 +45,7 @@
#import "ios/chrome/app/safe_mode_crashing_modules_config.h"
#import "ios/chrome/app/spotlight/spotlight_manager.h"
#import "ios/chrome/app/spotlight/spotlight_util.h"
+#include "ios/chrome/app/startup/background_upload_alert.h"
#include "ios/chrome/app/startup/chrome_main_starter.h"
#include "ios/chrome/app/startup/client_registration.h"
#include "ios/chrome/app/startup/ios_chrome_main.h"
@@ -677,18 +678,7 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
RegisterComponentsForUpdate();
- if (experimental_flags::IsAlertOnBackgroundUploadEnabled()) {
- if ([UIApplication instancesRespondToSelector:
- @selector(registerUserNotificationSettings:)]) {
- [[UIApplication sharedApplication]
- registerUserNotificationSettings:
- [UIUserNotificationSettings
- settingsForTypes:UIUserNotificationTypeAlert |
- UIUserNotificationTypeBadge |
- UIUserNotificationTypeSound
- categories:nil]];
- }
- }
+ [BackgroundUploadAlert setupBackgroundUploadAlert];
// Remove the extra browser states as Chrome iOS is single profile in M48+.
ChromeBrowserStateRemovalController::GetInstance()
« no previous file with comments | « no previous file | ios/chrome/app/startup/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698