| Index: chrome/browser/renderer_host/resource_message_filter_mac.mm
|
| ===================================================================
|
| --- chrome/browser/renderer_host/resource_message_filter_mac.mm (revision 12186)
|
| +++ chrome/browser/renderer_host/resource_message_filter_mac.mm (working copy)
|
| @@ -19,12 +19,13 @@
|
|
|
| }
|
|
|
| +// We get null window_ids passed into the two functions below; please see
|
| +// http://crbug.com/9060 for more details.
|
| +
|
| void ResourceMessageFilter::OnGetWindowRect(gfx::NativeViewId window_id,
|
| gfx::Rect* rect) {
|
| NSView* view = gfx::NativeViewFromId(window_id);
|
| - DCHECK(view);
|
| -
|
| - if (!view) { // paranoia
|
| + if (!view) {
|
| *rect = gfx::Rect();
|
| return;
|
| }
|
| @@ -38,9 +39,7 @@
|
| void ResourceMessageFilter::OnGetRootWindowRect(gfx::NativeViewId window_id,
|
| gfx::Rect* rect) {
|
| NSView* view = gfx::NativeViewFromId(window_id);
|
| - DCHECK(view);
|
| -
|
| - if (!view) { // paranoia
|
| + if (!view) {
|
| *rect = gfx::Rect();
|
| return;
|
| }
|
|
|