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

Unified Diff: chrome/browser/views/bug_report_view.cc

Issue 113940: Make Textfield more portable.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months 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 | « chrome/browser/views/bookmark_manager_view.cc ('k') | chrome/browser/views/edit_keyword_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bug_report_view.cc
===================================================================
--- chrome/browser/views/bug_report_view.cc (revision 17056)
+++ chrome/browser/views/bug_report_view.cc (working copy)
@@ -284,7 +284,7 @@
description_text_->SetEnabled(!is_phishing_report);
description_text_->SetReadOnly(is_phishing_report);
if (is_phishing_report) {
- old_report_text_ = description_text_->GetText();
+ old_report_text_ = description_text_->text();
description_text_->SetText(std::wstring());
} else if (!old_report_text_.empty()) {
description_text_->SetText(old_report_text_);
@@ -438,7 +438,7 @@
"name=\"url\"\r\n\r\n");
// convert URL to UTF8
- std::string report_url = WideToUTF8(page_url_text_->GetText());
+ std::string report_url = WideToUTF8(page_url_text_->text());
if (report_url.empty()) {
post_body.append("n/a\r\n");
} else {
@@ -479,7 +479,7 @@
post_body.append("Content-Disposition: form-data; "
"name=\"description\"\r\n\r\n");
- std::string description = WideToUTF8(description_text_->GetText());
+ std::string description = WideToUTF8(description_text_->text());
if (description.empty()) {
post_body.append("n/a\r\n");
} else {
@@ -522,7 +522,7 @@
void BugReportView::ReportPhishing() {
tab_->controller().LoadURL(
safe_browsing_util::GeneratePhishingReportUrl(
- kReportPhishingUrl, WideToUTF8(page_url_text_->GetText())),
+ kReportPhishingUrl, WideToUTF8(page_url_text_->text())),
GURL(),
PageTransition::LINK);
}
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.cc ('k') | chrome/browser/views/edit_keyword_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698