Chromium Code Reviews| Index: chrome/browser/ui/webui/sync_setup_handler.cc |
| diff --git a/chrome/browser/ui/webui/sync_setup_handler.cc b/chrome/browser/ui/webui/sync_setup_handler.cc |
| index 914f823f745edb3a76a69797f61db8f241a93202..c1bad70264aed3562db447af5e1130fb5bf4e3f5 100644 |
| --- a/chrome/browser/ui/webui/sync_setup_handler.cc |
| +++ b/chrome/browser/ui/webui/sync_setup_handler.cc |
| @@ -703,7 +703,9 @@ void SyncSetupHandler::OpenSyncSetup() { |
| bool SyncSetupHandler::FocusExistingWizard() { |
| Profile* profile = Profile::FromWebUI(web_ui_); |
| ProfileSyncService* service = profile->GetProfileSyncService(); |
| - DCHECK(service); |
| + if (!service) |
|
James Hawkins
2011/11/17 02:23:53
When is |service| NULL?
binji
2011/11/17 21:02:09
When using an incognito profile.
|
| + return false; |
| + |
| // If the wizard is already visible, focus it. |
| if (service->get_wizard().IsVisible()) { |
| service->get_wizard().Focus(); |