Index: chrome/browser/dom_ui/options/stop_syncing_handler.cc |
diff --git a/chrome/browser/dom_ui/options/stop_syncing_handler.cc b/chrome/browser/dom_ui/options/stop_syncing_handler.cc |
index 833c88e6333d2ac0af663d81d35ab9340c9bbe09..d51a4909932d0f086df5b72d13f5f59a997eafa0 100644 |
--- a/chrome/browser/dom_ui/options/stop_syncing_handler.cc |
+++ b/chrome/browser/dom_ui/options/stop_syncing_handler.cc |
@@ -39,7 +39,8 @@ void StopSyncingHandler::RegisterMessages() { |
} |
void StopSyncingHandler::StopSyncing(const ListValue* args){ |
- ProfileSyncService* service = dom_ui_->GetProfile()->GetProfileSyncService(); |
+ ProfileSyncService* service = |
+ dom_ui_->GetOriginalProfile()->GetProfileSyncService(); |
if (service != NULL && ProfileSyncService::IsSyncEnabled()) { |
service->DisableForUser(); |
ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); |