Index: chrome/browser/ui/webui/options/personal_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/personal_options_handler.cc b/chrome/browser/ui/webui/options/personal_options_handler.cc |
index e3ed25bc029bc551a21f4f9b0c363698865c39bd..0ca151d8633aa0c15fabb22603efc2a720bf0c27 100644 |
--- a/chrome/browser/ui/webui/options/personal_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/personal_options_handler.cc |
@@ -192,15 +192,6 @@ void PersonalOptionsHandler::GetLocalizedValues( |
void PersonalOptionsHandler::RegisterMessages() { |
DCHECK(web_ui_); |
web_ui_->RegisterMessageCallback( |
- "showSyncActionDialog", |
- NewCallback(this, &PersonalOptionsHandler::ShowSyncActionDialog)); |
- web_ui_->RegisterMessageCallback( |
- "showSyncLoginDialog", |
- NewCallback(this, &PersonalOptionsHandler::ShowSyncLoginDialog)); |
- web_ui_->RegisterMessageCallback( |
- "showCustomizeSyncDialog", |
- NewCallback(this, &PersonalOptionsHandler::ShowCustomizeSyncDialog)); |
- web_ui_->RegisterMessageCallback( |
"themesReset", |
NewCallback(this, &PersonalOptionsHandler::ThemesReset)); |
#if defined(TOOLKIT_GTK) |
@@ -386,25 +377,6 @@ void PersonalOptionsHandler::Initialize() { |
} |
} |
-void PersonalOptionsHandler::ShowSyncActionDialog(const ListValue* args) { |
- ProfileSyncService* service = web_ui_->GetProfile()->GetProfileSyncService(); |
- DCHECK(service); |
- service->ShowErrorUI(web_ui_); |
-} |
- |
-void PersonalOptionsHandler::ShowSyncLoginDialog(const ListValue* args) { |
- ProfileSyncService* service = web_ui_->GetProfile()->GetProfileSyncService(); |
- DCHECK(service); |
- service->ShowLoginDialog(web_ui_); |
- ProfileSyncService::SyncEvent(ProfileSyncService::START_FROM_OPTIONS); |
-} |
- |
-void PersonalOptionsHandler::ShowCustomizeSyncDialog(const ListValue* args) { |
- ProfileSyncService* service = web_ui_->GetProfile()->GetProfileSyncService(); |
- DCHECK(service); |
- service->ShowConfigure(web_ui_, false); |
-} |
- |
void PersonalOptionsHandler::ThemesReset(const ListValue* args) { |
UserMetricsRecordAction(UserMetricsAction("Options_ThemesReset")); |
ThemeServiceFactory::GetForProfile(web_ui_->GetProfile())->UseDefaultTheme(); |