| Index: chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.cc b/chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| index 3462aee7e2f2215356b099492a0cf0cb8e17b0c5..458a8c7410d678229b9a98473174b27c8a62dcdd 100644
|
| --- a/chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/sync_setup_handler.cc
|
| @@ -719,10 +719,12 @@ void SyncSetupHandler::CloseSyncSetup() {
|
| }
|
| }
|
| }
|
| -
|
| - GetLoginUIService()->LoginUIClosed(this);
|
| }
|
|
|
| + LoginUIService* service = GetLoginUIService();
|
| + if (service)
|
| + service->LoginUIClosed(this);
|
| +
|
| // Alert the sync service anytime the sync setup dialog is closed. This can
|
| // happen due to the user clicking the OK or Cancel button, or due to the
|
| // dialog being closed by virtue of sync being disabled in the background.
|
|
|