Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(870)

Side by Side Diff: chrome/browser/ui/gtk/options/content_page_gtk.cc

Issue 6293010: Change all the places where the multi-purpose sync error link is surfaced to ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698