| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/gtk/options/content_page_gtk.h" | 5 #include "chrome/browser/ui/gtk/options/content_page_gtk.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 596 |
| 597 void ContentPageGtk::OnSyncCustomizeButtonClicked(GtkWidget* widget) { | 597 void ContentPageGtk::OnSyncCustomizeButtonClicked(GtkWidget* widget) { |
| 598 // sync_customize_button_ should be invisible if sync is not yet set up. | 598 // sync_customize_button_ should be invisible if sync is not yet set up. |
| 599 DCHECK(sync_service_ && !sync_service_->IsManaged() && | 599 DCHECK(sync_service_ && !sync_service_->IsManaged() && |
| 600 sync_service_->HasSyncSetupCompleted()); | 600 sync_service_->HasSyncSetupCompleted()); |
| 601 sync_service_->ShowConfigure(NULL); | 601 sync_service_->ShowConfigure(NULL); |
| 602 } | 602 } |
| 603 | 603 |
| 604 void ContentPageGtk::OnSyncActionLinkClicked(GtkWidget* widget) { | 604 void ContentPageGtk::OnSyncActionLinkClicked(GtkWidget* widget) { |
| 605 DCHECK(sync_service_ && !sync_service_->IsManaged()); | 605 DCHECK(sync_service_ && !sync_service_->IsManaged()); |
| 606 sync_service_->ShowConfigure(NULL); | 606 sync_service_->ShowErrorUI(NULL); |
| 607 } | 607 } |
| 608 | 608 |
| 609 void ContentPageGtk::OnStopSyncDialogResponse(GtkWidget* widget, int response) { | 609 void ContentPageGtk::OnStopSyncDialogResponse(GtkWidget* widget, int response) { |
| 610 if (response == GTK_RESPONSE_ACCEPT) { | 610 if (response == GTK_RESPONSE_ACCEPT) { |
| 611 sync_service_->DisableForUser(); | 611 sync_service_->DisableForUser(); |
| 612 ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); | 612 ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); |
| 613 } | 613 } |
| 614 gtk_widget_destroy(widget); | 614 gtk_widget_destroy(widget); |
| 615 } | 615 } |
| 616 | 616 |
| 617 void ContentPageGtk::OnPrivacyDashboardLinkClicked(GtkWidget* widget) { | 617 void ContentPageGtk::OnPrivacyDashboardLinkClicked(GtkWidget* widget) { |
| 618 BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate(); | 618 BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate(); |
| 619 } | 619 } |
| OLD | NEW |