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

Unified Diff: ios/web/crw_network_activity_indicator_manager.mm

Issue 1023013002: Minor cleanup in ios/web utils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/web/history_state_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | ios/web/history_state_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698