| Index: ios/web/crw_network_activity_indicator_manager.mm
|
| diff --git a/ios/web/crw_network_activity_indicator_manager.mm b/ios/web/crw_network_activity_indicator_manager.mm
|
| index ec8e0e39e9f4bd7d6080be885d1656a93faf82a9..683e293e4757345b5ad5ac6c1ec4a97381fdae07 100644
|
| --- a/ios/web/crw_network_activity_indicator_manager.mm
|
| +++ b/ios/web/crw_network_activity_indicator_manager.mm
|
| @@ -26,7 +26,7 @@
|
| return instance;
|
| }
|
|
|
| -- (id)init {
|
| +- (instancetype)init {
|
| self = [super init];
|
| if (self) {
|
| _groupCounts.reset([[NSMutableDictionary alloc] init]);
|
| @@ -54,8 +54,7 @@
|
| DCHECK_GT(count, 0U);
|
| }
|
| count += numTasks;
|
| - [_groupCounts setObject:[NSNumber numberWithUnsignedInteger:count]
|
| - forKey:group];
|
| + [_groupCounts setObject:@(count) forKey:group];
|
| _totalCount += numTasks;
|
| if (_totalCount == numTasks) {
|
| [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
|
| @@ -74,8 +73,7 @@
|
| if (count == 0) {
|
| [_groupCounts removeObjectForKey:group];
|
| } else {
|
| - [_groupCounts setObject:[NSNumber numberWithUnsignedInteger:count]
|
| - forKey:group];
|
| + [_groupCounts setObject:@(count) forKey:group];
|
| }
|
| _totalCount -= numTasks;
|
| if (_totalCount == 0) {
|
| @@ -111,5 +109,4 @@
|
| return _totalCount;
|
| }
|
|
|
| -
|
| @end
|
|
|