| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/content_page_gtk.h" | 5 #include "chrome/browser/gtk/options/content_page_gtk.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/gtk_util.h" | 9 #include "app/gtk_util.h" |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
| 14 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 15 #include "chrome/browser/browser_window.h" | 15 #include "chrome/browser/browser_window.h" |
| 16 #include "chrome/browser/defaults.h" | 16 #include "chrome/browser/defaults.h" |
| 17 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 17 #include "chrome/browser/gtk/gtk_chrome_link_button.h" |
| 18 #include "chrome/browser/gtk/gtk_theme_provider.h" | 18 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 19 #include "chrome/browser/gtk/gtk_util.h" | 19 #include "chrome/browser/gtk/gtk_util.h" |
| 20 #include "chrome/browser/gtk/import_dialog_gtk.h" | 20 #include "chrome/browser/gtk/import_dialog_gtk.h" |
| 21 #include "chrome/browser/gtk/options/customize_sync_window_gtk.h" | 21 #include "chrome/browser/gtk/options/customize_sync_window_gtk.h" |
| 22 #include "chrome/browser/gtk/options/options_layout_gtk.h" | 22 #include "chrome/browser/gtk/options/options_layout_gtk.h" |
| 23 #include "chrome/browser/gtk/options/passwords_exceptions_window_gtk.h" | 23 #include "chrome/browser/gtk/options/passwords_exceptions_window_gtk.h" |
| 24 #include "chrome/browser/importer/importer_data_types.h" | 24 #include "chrome/common/importer_data_types.h" |
| 25 #include "chrome/browser/pref_service.h" | 25 #include "chrome/browser/pref_service.h" |
| 26 #include "chrome/browser/sync/sync_ui_util.h" | 26 #include "chrome/browser/sync/sync_ui_util.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/notification_service.h" | 28 #include "chrome/common/notification_service.h" |
| 29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "gfx/gtk_util.h" | 31 #include "gfx/gtk_util.h" |
| 32 #include "grit/app_resources.h" | 32 #include "grit/app_resources.h" |
| 33 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
| 34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 sync_service_->ShowLoginDialog(); | 610 sync_service_->ShowLoginDialog(); |
| 611 } | 611 } |
| 612 | 612 |
| 613 void ContentPageGtk::OnStopSyncDialogResponse(GtkWidget* widget, int response) { | 613 void ContentPageGtk::OnStopSyncDialogResponse(GtkWidget* widget, int response) { |
| 614 if (response == GTK_RESPONSE_ACCEPT) { | 614 if (response == GTK_RESPONSE_ACCEPT) { |
| 615 sync_service_->DisableForUser(); | 615 sync_service_->DisableForUser(); |
| 616 ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); | 616 ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); |
| 617 } | 617 } |
| 618 gtk_widget_destroy(widget); | 618 gtk_widget_destroy(widget); |
| 619 } | 619 } |
| OLD | NEW |