summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bug_report_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/bug_report_view.cc')
-rw-r--r--chrome/browser/views/bug_report_view.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/views/bug_report_view.cc b/chrome/browser/views/bug_report_view.cc
index 2977409..45023e5 100644
--- a/chrome/browser/views/bug_report_view.cc
+++ b/chrome/browser/views/bug_report_view.cc
@@ -154,8 +154,7 @@ void BugReportView::PostCleanup::OnURLFetchComplete(
// This is separate from crash reporting, which is handled by Breakpad.
//
BugReportView::BugReportView(Profile* profile, TabContents* tab)
- : dialog_(NULL),
- include_page_source_checkbox_(NULL),
+ : include_page_source_checkbox_(NULL),
include_page_image_checkbox_(NULL),
profile_(profile),
post_url_(l10n_util::GetString(IDS_BUGREPORT_POST_URL)),
@@ -279,7 +278,7 @@ void BugReportView::ItemChanged(ChromeViews::ComboBox* combo_box,
include_page_image_checkbox_->SetEnabled(!is_phishing_report);
include_page_image_checkbox_->SetIsSelected(!is_phishing_report);
- dialog_->UpdateDialogButtons();
+ window()->UpdateDialogButtons();
}
void BugReportView::ContentsChanged(ChromeViews::TextField* sender,
@@ -340,6 +339,10 @@ bool BugReportView::Accept() {
return true;
}
+ChromeViews::View* BugReportView::GetContentsView() {
+ return this;
+}
+
void BugReportView::SetUrl(const GURL& url) {
page_url_text_->SetText(UTF8ToWide(url.spec()));
}