Index: chrome/browser/gtk/browser_titlebar.cc |
diff --git a/chrome/browser/gtk/browser_titlebar.cc b/chrome/browser/gtk/browser_titlebar.cc |
index 11d34996ecbf57855c03477d3de5a072865b30a8..05520d007c74f21e4f08a24897d4a4000292c4d4 100644 |
--- a/chrome/browser/gtk/browser_titlebar.cc |
+++ b/chrome/browser/gtk/browser_titlebar.cc |
@@ -191,8 +191,15 @@ void BrowserTitlebar::Init() { |
gtk_box_pack_start(GTK_BOX(titlebar_buttons_box_), buttons_hbox, FALSE, |
FALSE, 0); |
- close_button_.reset(BuildTitlebarButton(IDR_CLOSE, IDR_CLOSE_P, IDR_CLOSE_H, |
- buttons_hbox, IDS_XPFRAME_CLOSE_TOOLTIP)); |
+ if (CommandLine::ForCurrentProcess()->HasSwitch(L"glen")) { |
+ close_button_.reset(BuildTitlebarButton(IDR_GLEN, IDR_GLEN, IDR_GLEN, |
+ buttons_hbox, IDS_GLEN)); |
+ } else { |
+ close_button_.reset(BuildTitlebarButton(IDR_CLOSE, IDR_CLOSE_P, IDR_CLOSE_H, |
+ buttons_hbox, |
+ IDS_XPFRAME_CLOSE_TOOLTIP)); |
+ } |
+ |
restore_button_.reset(BuildTitlebarButton(IDR_RESTORE, IDR_RESTORE_P, |
IDR_RESTORE_H, buttons_hbox, |
IDS_XPFRAME_RESTORE_TOOLTIP)); |