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

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

Issue 610003: Linux: Implement the new AutoFill section of the Options dialog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
===================================================================
--- chrome/browser/autofill/autofill_dialog_gtk.cc (revision 38819)
+++ chrome/browser/autofill/autofill_dialog_gtk.cc (working copy)
@@ -138,9 +138,10 @@
// 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