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

Side by Side Diff: chrome/browser/ui/cocoa/about_ipc_controller.mm

Issue 10825447: chrome/browser should build on the x86_64 architecture (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased on the updated trunk. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/mac/bundle_locations.h" 6 #include "base/mac/bundle_locations.h"
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 - (void)log:(CocoaLogData*)data { 178 - (void)log:(CocoaLogData*)data {
179 if ([self filterOut:data]) { 179 if ([self filterOut:data]) {
180 [filteredEventCount_ setStringValue:[NSString stringWithFormat:@"%d", 180 [filteredEventCount_ setStringValue:[NSString stringWithFormat:@"%d",
181 ++filteredEventCounter_]]; 181 ++filteredEventCounter_]];
182 return; 182 return;
183 } 183 }
184 [dataController_ addObject:data]; 184 [dataController_ addObject:data];
185 NSUInteger count = [[dataController_ arrangedObjects] count]; 185 NSUInteger count = [[dataController_ arrangedObjects] count];
186 // Uncomment if you want scroll-to-end behavior... but seems expensive. 186 // Uncomment if you want scroll-to-end behavior... but seems expensive.
187 // [tableView_ scrollRowToVisible:count-1]; 187 // [tableView_ scrollRowToVisible:count-1];
188 [eventCount_ setStringValue:[NSString stringWithFormat:@"%d", count]]; 188 [eventCount_ setStringValue:[NSString stringWithFormat:@"%ld",
189 static_cast<long>(count)]];
189 } 190 }
190 191
191 - (void)setDisplayViewMessages:(BOOL)display { 192 - (void)setDisplayViewMessages:(BOOL)display {
192 view_ = display; 193 view_ = display;
193 } 194 }
194 195
195 @end 196 @end
196 197
197 #endif // IPC_MESSAGE_LOG_ENABLED 198 #endif // IPC_MESSAGE_LOG_ENABLED
198 199
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698