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

Unified Diff: chrome/browser/ui/cocoa/web_intent_sheet_controller.mm

Issue 10417027: Restrict throbber messages to SingleSuggestionView objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extraneous logging. Created 8 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
diff --git a/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm b/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
index d016793432d74b4e13378306be7ced8e71750fbe..7d3db77ea4a389dfc3d76727b7242b122f268afc 100644
--- a/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
+++ b/chrome/browser/ui/cocoa/web_intent_sheet_controller.mm
@@ -410,16 +410,21 @@ NSButton* CreateHyperlinkButton(NSString* title, const NSRect& frame) {
- (void)startThrobberForRow:(NSInteger)index {
for (SingleSuggestionView* row in [self subviews]) {
- [row setEnabled:NO];
- if ([row tag] == index)
- [row startThrobber];
+ if ([row isMemberOfClass:[SingleSuggestionView class]]) {
+ [row setEnabled:NO];
+ if ([row tag] == index) {
+ [row startThrobber];
+ }
+ }
}
}
- (void)stopThrobber {
for (SingleSuggestionView* row in [self subviews]) {
- [row stopThrobber];
- [row setEnabled:YES];
+ if ([row isMemberOfClass:[SingleSuggestionView class]]) {
+ [row stopThrobber];
+ [row setEnabled:YES];
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698