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

Unified Diff: chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc

Issue 15757010: Translate: style nits on r201807 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 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/translate/translate_infobar_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc
index d4b6142a4e263fca17d73b995c8912b8c401e0b6..db73edb97035ea6473a63c53cd018a283858b1e0 100644
--- a/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc
@@ -35,10 +35,7 @@ void AfterTranslateInfoBar::InitWidgets() {
std::vector<string16> strings;
TranslateInfoBarDelegate::GetAfterTranslateStrings(
&strings, &swapped_language_combos, autodetermined_source_language);
- if (autodetermined_source_language)
- DCHECK(strings.size() == 2U);
- else
- DCHECK(strings.size() == 3U);
+ DCHECK_EQ(autodetermined_source_language ? 2U : 3U, strings.size());
GtkWidget* hbox = gtk_hbox_new(FALSE, ui::kControlSpacing);
gtk_util::CenterWidgetInHBox(hbox_, hbox, false, 0);
@@ -65,11 +62,11 @@ void AfterTranslateInfoBar::InitWidgets() {
gtk_box_pack_start(GTK_BOX(hbox), CreateLabel(UTF16ToUTF8(strings[0])),
FALSE, FALSE, 0);
- gtk_box_pack_start(GTK_BOX(hbox),
- (swapped_language_combos ||
- autodetermined_source_language) ? target_lang_combo :
- original_lang_combo,
- FALSE, FALSE, 0);
+ gtk_box_pack_start(
+ GTK_BOX(hbox),
+ (swapped_language_combos || autodetermined_source_language) ?
+ target_lang_combo : original_lang_combo,
+ FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(hbox), CreateLabel(UTF16ToUTF8(strings[1])),
FALSE, FALSE, 0);
if (!autodetermined_source_language) {
« no previous file with comments | « chrome/browser/translate/translate_infobar_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698