Chromium Code Reviews| 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..37a09a37f35cc7d5dd72791077d290e5bf704d35 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,7 +54,7 @@ |
| DCHECK_GT(count, 0U); |
| } |
| count += numTasks; |
| - [_groupCounts setObject:[NSNumber numberWithUnsignedInteger:count] |
| + [_groupCounts setObject:@(count) |
|
Eugene But (OOO till 7-30)
2015/03/20 16:10:24
Please run "git cl format"
stuartmorgan
2015/03/20 16:24:56
Done.
|
| forKey:group]; |
| _totalCount += numTasks; |
| if (_totalCount == numTasks) { |
| @@ -74,7 +74,7 @@ |
| if (count == 0) { |
| [_groupCounts removeObjectForKey:group]; |
| } else { |
| - [_groupCounts setObject:[NSNumber numberWithUnsignedInteger:count] |
| + [_groupCounts setObject:@(count) |
| forKey:group]; |
| } |
| _totalCount -= numTasks; |
| @@ -111,5 +111,4 @@ |
| return _totalCount; |
| } |
| - |
| @end |