Index: ui/app_list/cocoa/apps_search_results_controller.mm |
diff --git a/ui/app_list/cocoa/apps_search_results_controller.mm b/ui/app_list/cocoa/apps_search_results_controller.mm |
index 4ef61672dae74914f3001c5a0cb8f24cac2a0f64..95f293f0d71ce473cf207208a4304076ca97b60c 100644 |
--- a/ui/app_list/cocoa/apps_search_results_controller.mm |
+++ b/ui/app_list/cocoa/apps_search_results_controller.mm |
@@ -402,15 +402,6 @@ const NSBackgroundStyle kBackgroundHovered = NSBackgroundStyleRaised; |
[self delegate]); |
} |
-- (BOOL)canDraw { |
- // AppKit doesn't call -[NSView canDrawConcurrently] which would have told it |
- // that this is unsafe. Returning true from canDraw only if there is a message |
- // loop ensures that no drawing occurs on a background thread. Without this, |
- // ImageSkia can assert when trying to get bitmaps. http://crbug.com/417148. |
- // This means unit tests will always return 'NO', but that's OK. |
- return !!base::MessageLoop::current() && [super canDraw]; |
-} |
- |
- (void)mouseDown:(NSEvent*)theEvent { |
[[self controller] mouseDown:theEvent]; |
[super mouseDown:theEvent]; |