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

Unified Diff: chrome/browser/dom_ui/bug_report_ui.cc

Issue 5833001: Fix for occasional crash when submitting feedback on a page that is not yet loaded it's title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to use GetURL Created 10 years 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/dom_ui/bug_report_ui.cc
diff --git a/chrome/browser/dom_ui/bug_report_ui.cc b/chrome/browser/dom_ui/bug_report_ui.cc
index 4d8bc83b7e9896eb424a025eddae264f3cea5832..dd256365adcdf514a4692a6d0dfa41858a3c6d46 100644
--- a/chrome/browser/dom_ui/bug_report_ui.cc
+++ b/chrome/browser/dom_ui/bug_report_ui.cc
@@ -570,7 +570,7 @@ base::StringPiece BugReportHandler::Init() {
TabContents* target_tab = browser->GetTabContentsAt(index);
if (target_tab) {
target_tab_title_ = target_tab->GetTitle();
- target_tab_url_ = target_tab->controller().GetActiveEntry()->url().spec();
+ target_tab_url_ = target_tab->GetURL().spec();
}
// Setup the screenshot source after we've verified input is legit.
« 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