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

Unified Diff: ios/showcase/common/protocol_alerter.mm

Issue 2640473002: Suggestions UI - favicon item (Closed)
Patch Set: Fix build Created 3 years, 11 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
Index: ios/showcase/common/protocol_alerter.mm
diff --git a/ios/showcase/common/protocol_alerter.mm b/ios/showcase/common/protocol_alerter.mm
index 888f95788587f85c411caa070f86174428f47cf6..410226c07f91e31efec2a7e8e915c48d1750e3c0 100644
--- a/ios/showcase/common/protocol_alerter.mm
+++ b/ios/showcase/common/protocol_alerter.mm
@@ -158,13 +158,15 @@ char kAssociatedProtocolNameKey;
switch (*type) {
case '@':
return [self objectDescriptionAtIndex:index];
+ case 'q':
+ return [self longLongDescriptionAtIndex:index];
// Add cases as needed here.
default:
return [NSString stringWithFormat:@"<Unknown Type:%c>", *type];
}
}
-// Return a string describing an argument at |index| that's known to an
+// Return a string describing an argument at |index| that's known to be an
// objective-C object.
- (NSString*)objectDescriptionAtIndex:(NSInteger)index {
id object;
@@ -198,4 +200,13 @@ char kAssociatedProtocolNameKey;
range:range];
}
+// Returns a string describing an argument at |index| that is known to be a long
+// long.
+- (NSString*)longLongDescriptionAtIndex:(NSInteger)index {
+ long long value;
+
+ [self getArgument:&value atIndex:index];
+ return [NSString stringWithFormat:@"%lld", value];
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698