Commit e1c8b56d authored by Peter K. Lee's avatar Peter K. Lee Committed by Commit Bot

CheckForFirstPartyApps not needed if Mailto is handled by Google UI

Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: I0651ad924a0cf050850cc5298b247c44abd355a4
Reviewed-on: https://chromium-review.googlesource.com/c/1287298Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Commit-Queue: Peter Lee <pkl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600614}
parent 7c2fd410
...@@ -1138,7 +1138,6 @@ enum class ShowTabSwitcherSnapshotResult { ...@@ -1138,7 +1138,6 @@ enum class ShowTabSwitcherSnapshotResult {
} }
- (void)initializeMailtoHandling { - (void)initializeMailtoHandling {
if (base::FeatureList::IsEnabled(kMailtoHandledWithGoogleUI)) {
__weak __typeof(self) weakSelf = self; __weak __typeof(self) weakSelf = self;
[[DeferredInitializationRunner sharedInstance] [[DeferredInitializationRunner sharedInstance]
enqueueBlockNamed:kMailtoHandlingInitialization enqueueBlockNamed:kMailtoHandlingInitialization
...@@ -1149,10 +1148,8 @@ enum class ShowTabSwitcherSnapshotResult { ...@@ -1149,10 +1148,8 @@ enum class ShowTabSwitcherSnapshotResult {
} }
ios::GetChromeBrowserProvider() ios::GetChromeBrowserProvider()
->GetMailtoHandlerProvider() ->GetMailtoHandlerProvider()
->PrepareMailtoHandling( ->PrepareMailtoHandling(strongSelf->_mainBrowserState);
strongSelf->_mainBrowserState);
}]; }];
}
} }
- (void)startFreeMemoryMonitoring { - (void)startFreeMemoryMonitoring {
...@@ -1178,8 +1175,10 @@ enum class ShowTabSwitcherSnapshotResult { ...@@ -1178,8 +1175,10 @@ enum class ShowTabSwitcherSnapshotResult {
[self scheduleStartupAttemptReset]; [self scheduleStartupAttemptReset];
[self startFreeMemoryMonitoring]; [self startFreeMemoryMonitoring];
[self scheduleAppDistributionPings]; [self scheduleAppDistributionPings];
[self scheduleCheckForFirstPartyApps]; if (base::FeatureList::IsEnabled(kMailtoHandledWithGoogleUI))
[self initializeMailtoHandling]; [self initializeMailtoHandling];
else
[self scheduleCheckForFirstPartyApps];
} }
- (void)scheduleTasksRequiringBVCWithBrowserState { - (void)scheduleTasksRequiringBVCWithBrowserState {
......
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