| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/gtk/options/advanced_contents_gtk.h" | 5 #include "chrome/browser/gtk/options/advanced_contents_gtk.h" |
| 6 | 6 |
| 7 #include <sys/types.h> | 7 #include <sys/types.h> |
| 8 #include <sys/wait.h> | 8 #include <sys/wait.h> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 } | 812 } |
| 813 | 813 |
| 814 void PrivacySection::ShowRestartMessageBox() const { | 814 void PrivacySection::ShowRestartMessageBox() const { |
| 815 GtkWidget* dialog = gtk_message_dialog_new( | 815 GtkWidget* dialog = gtk_message_dialog_new( |
| 816 GTK_WINDOW(gtk_widget_get_toplevel(page_)), | 816 GTK_WINDOW(gtk_widget_get_toplevel(page_)), |
| 817 static_cast<GtkDialogFlags>(GTK_DIALOG_MODAL), | 817 static_cast<GtkDialogFlags>(GTK_DIALOG_MODAL), |
| 818 GTK_MESSAGE_INFO, | 818 GTK_MESSAGE_INFO, |
| 819 GTK_BUTTONS_OK, | 819 GTK_BUTTONS_OK, |
| 820 "%s", | 820 "%s", |
| 821 l10n_util::GetStringUTF8(IDS_OPTIONS_RESTART_REQUIRED).c_str()); | 821 l10n_util::GetStringUTF8(IDS_OPTIONS_RESTART_REQUIRED).c_str()); |
| 822 gtk_util::ApplyMessageDialogQuirks(dialog); |
| 822 gtk_window_set_title(GTK_WINDOW(dialog), | 823 gtk_window_set_title(GTK_WINDOW(dialog), |
| 823 l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str()); | 824 l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str()); |
| 824 g_signal_connect_swapped(dialog, "response", G_CALLBACK(gtk_widget_destroy), | 825 g_signal_connect_swapped(dialog, "response", G_CALLBACK(gtk_widget_destroy), |
| 825 dialog); | 826 dialog); |
| 826 gtk_widget_show_all(dialog); | 827 gtk_widget_show_all(dialog); |
| 827 } | 828 } |
| 828 | 829 |
| 829 /////////////////////////////////////////////////////////////////////////////// | 830 /////////////////////////////////////////////////////////////////////////////// |
| 830 // SecuritySection | 831 // SecuritySection |
| 831 | 832 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_CONTENT), | 1107 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_CONTENT), |
| 1107 web_content_section_->get_page_widget(), false); | 1108 web_content_section_->get_page_widget(), false); |
| 1108 | 1109 |
| 1109 security_section_.reset(new SecuritySection(profile_)); | 1110 security_section_.reset(new SecuritySection(profile_)); |
| 1110 options_builder.AddOptionGroup( | 1111 options_builder.AddOptionGroup( |
| 1111 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_SECURITY), | 1112 l10n_util::GetStringUTF8(IDS_OPTIONS_ADVANCED_SECTION_TITLE_SECURITY), |
| 1112 security_section_->get_page_widget(), false); | 1113 security_section_->get_page_widget(), false); |
| 1113 | 1114 |
| 1114 page_ = options_builder.get_page_widget(); | 1115 page_ = options_builder.get_page_widget(); |
| 1115 } | 1116 } |
| OLD | NEW |