Index: chrome/browser/app_controller_mac.mm |
=================================================================== |
--- chrome/browser/app_controller_mac.mm (revision 75286) |
+++ chrome/browser/app_controller_mac.mm (working copy) |
@@ -1118,7 +1118,7 @@ |
// window controller. |
- (void)prefsWindowClosed:(NSNotification*)notification { |
NSWindow* window = [prefsController_ window]; |
- DCHECK([notification object] == window); |
+ DCHECK_EQ([notification object], window); |
NSNotificationCenter* defaultCenter = [NSNotificationCenter defaultCenter]; |
[defaultCenter removeObserver:self |
name:NSWindowWillCloseNotification |
@@ -1171,7 +1171,7 @@ |
// window controller. |
- (void)aboutWindowClosed:(NSNotification*)notification { |
NSWindow* window = [aboutController_ window]; |
- DCHECK(window == [notification object]); |
+ DCHECK_EQ(window, [notification object]); |
[[NSNotificationCenter defaultCenter] |
removeObserver:self |
name:NSWindowWillCloseNotification |
@@ -1239,7 +1239,7 @@ |
for (ExtensionList::const_iterator cursor = applications.begin(); |
cursor != applications.end(); |
++cursor, ++position) { |
- DCHECK(position == applications.GetPosition(*cursor)); |
+ DCHECK_EQ(position, applications.GetPosition(*cursor)); |
NSString* itemStr = |
base::SysUTF16ToNSString(UTF8ToUTF16((*cursor)->name())); |
scoped_nsobject<NSMenuItem> appItem([[NSMenuItem alloc] |