summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/tab_strip_controller.mm16
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm
index 90fced55..128ad7e 100644
--- a/chrome/browser/cocoa/tab_strip_controller.mm
+++ b/chrome/browser/cocoa/tab_strip_controller.mm
@@ -450,12 +450,16 @@ NSString* const kTabStripNumberOfTabsChanged = @"kTabStripNumberOfTabsChanged";
TabController* tabController = [tabArray_ objectAtIndex:index];
NSImage* image = nil;
- if (contents->waiting_for_response() && ![tabController waiting]) {
- image = throbberWaitingImage;
- [tabController setWaiting:YES];
- } else if (contents->is_loading() && ![tabController loading]) {
- image = throbberImage;
- [tabController setLoading:YES];
+ if (contents->waiting_for_response()) {
+ if (![tabController waiting]) {
+ image = throbberWaitingImage;
+ [tabController setWaiting:YES];
+ }
+ } else if (contents->is_loading()) {
+ if (![tabController loading]) {
+ image = throbberImage;
+ [tabController setLoading:YES];
+ }
}
if (image) {
NSRect frame = NSMakeRect(0, 0, 16, 16);