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

Unified Diff: chrome/browser/autofill/autofill_dialog_gtk.cc

Issue 579020: linux: Implement the new AutoFill section of the Options dialog. (Closed)
Patch Set: fix for mac side Created 10 years, 10 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/app/nibs/Preferences.xib ('k') | chrome/browser/gtk/options/content_page_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_dialog_gtk.cc
diff --git a/chrome/browser/autofill/autofill_dialog_gtk.cc b/chrome/browser/autofill/autofill_dialog_gtk.cc
index 20f673de5168b50dd8ce9afee57f6616b633883b..df55e3a7442d79eae6156cf85e6e0205235b2015 100644
--- a/chrome/browser/autofill/autofill_dialog_gtk.cc
+++ b/chrome/browser/autofill/autofill_dialog_gtk.cc
@@ -138,9 +138,10 @@ void FormTableSetLabel(
// We have two table rows per form table row.
row *= 2;
- const char* text =
- (label_id) ? l10n_util::GetStringUTF8(label_id).c_str() : 0;
- GtkWidget* label = gtk_label_new(text);
+ std::string text;
+ if (label_id)
+ text = l10n_util::GetStringUTF8(label_id);
+ GtkWidget* label = gtk_label_new(text.c_str());
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach(GTK_TABLE(table), label,
col, col + len, // Left col, right col.
« no previous file with comments | « chrome/app/nibs/Preferences.xib ('k') | chrome/browser/gtk/options/content_page_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698