| Index: chrome/browser/cocoa/bug_report_window_controller.mm
|
| ===================================================================
|
| --- chrome/browser/cocoa/bug_report_window_controller.mm (revision 47222)
|
| +++ chrome/browser/cocoa/bug_report_window_controller.mm (working copy)
|
| @@ -63,13 +63,17 @@
|
| currentTab_->controller().GetActiveEntry()->url().spec())];
|
| [self setPageTitle:base::SysUTF16ToNSString(currentTab_->GetTitle())];
|
| mac_util::GrabWindowSnapshot(
|
| - currentTab_->view()->GetTopLevelNativeWindow(), &pngData_);
|
| + currentTab_->view()->GetTopLevelNativeWindow(), &pngData_,
|
| + &pngWidth_, &pngHeight_);
|
| } else {
|
| // If no current tab exists, create a menu without the "broken page"
|
| // options, with page URL and title empty, and screenshot disabled.
|
| [self setSendScreenshot:NO];
|
| [self setDisableScreenshotCheckbox:YES];
|
| }
|
| +
|
| + pngHeight_ = 0;
|
| + pngWidth_ = 0;
|
| }
|
| return self;
|
| }
|
| @@ -112,7 +116,7 @@
|
| base::SysNSStringToUTF8(bugDescription_),
|
| sendScreenshot_ && !pngData_.empty() ?
|
| reinterpret_cast<const char *>(&(pngData_[0])) : NULL,
|
| - pngData_.size());
|
| + pngData_.size(), pngWidth_, pngHeight_);
|
| }
|
| [self closeDialog];
|
| }
|
|
|