| 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_page_gtk.h" | 5 #include "chrome/browser/gtk/options/advanced_page_gtk.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "chrome/browser/options_util.h" |
| 8 #include "chrome/common/gtk_util.h" | 9 #include "chrome/common/gtk_util.h" |
| 9 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 10 #include "grit/chromium_strings.h" | 11 #include "grit/chromium_strings.h" |
| 11 | 12 |
| 12 AdvancedPageGtk::AdvancedPageGtk(Profile* profile) | 13 AdvancedPageGtk::AdvancedPageGtk(Profile* profile) |
| 13 : OptionsPageBase(profile), | 14 : OptionsPageBase(profile), |
| 14 advanced_contents_(profile) { | 15 advanced_contents_(profile) { |
| 15 Init(); | 16 Init(); |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 g_signal_connect(dialog_, "response", | 67 g_signal_connect(dialog_, "response", |
| 67 G_CALLBACK(OnResetToDefaultsResponse), advanced_page); | 68 G_CALLBACK(OnResetToDefaultsResponse), advanced_page); |
| 68 | 69 |
| 69 gtk_widget_show_all(dialog_); | 70 gtk_widget_show_all(dialog_); |
| 70 } | 71 } |
| 71 | 72 |
| 72 // static | 73 // static |
| 73 void AdvancedPageGtk::OnResetToDefaultsResponse( | 74 void AdvancedPageGtk::OnResetToDefaultsResponse( |
| 74 GtkDialog* dialog, int response_id, AdvancedPageGtk* advanced_page) { | 75 GtkDialog* dialog, int response_id, AdvancedPageGtk* advanced_page) { |
| 75 if (response_id == GTK_RESPONSE_OK) { | 76 if (response_id == GTK_RESPONSE_OK) { |
| 76 NOTIMPLEMENTED(); | 77 OptionsUtil::ResetToDefaults(advanced_page->profile()); |
| 77 } | 78 } |
| 78 gtk_widget_destroy(GTK_WIDGET(dialog)); | 79 gtk_widget_destroy(GTK_WIDGET(dialog)); |
| 79 } | 80 } |
| OLD | NEW |