Index: chrome/browser/ui/webui/options/stop_syncing_handler.cc |
diff --git a/chrome/browser/ui/webui/options/stop_syncing_handler.cc b/chrome/browser/ui/webui/options/stop_syncing_handler.cc |
index 7831ab2234b18401cb2dbfc14951ddf4fe581d1b..cba145b2de5b67ae9c737abcd14ddb600b234eea 100644 |
--- a/chrome/browser/ui/webui/options/stop_syncing_handler.cc |
+++ b/chrome/browser/ui/webui/options/stop_syncing_handler.cc |
@@ -38,7 +38,8 @@ void StopSyncingHandler::RegisterMessages() { |
} |
void StopSyncingHandler::StopSyncing(const ListValue* args){ |
- ProfileSyncService* service = web_ui_->GetProfile()->GetProfileSyncService(); |
+ ProfileSyncService* service = |
+ Profile::FromWebUI(web_ui_)->GetProfileSyncService(); |
if (service != NULL && ProfileSyncService::IsSyncEnabled()) { |
service->DisableForUser(); |
ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); |