Fix a crash on showing sync setup dialog in guest mode.
Navigating directly to chrome://settings/syncSetup in guest mode is causing a DCHECK() failure, since the ProfileSyncService is NULL in the guest mode. This patch adds a NULL check on ProfileSyncService to fix the crash and also terminates the sync setup if the service is NULL. BUG=370861 Review URL: https://codereview.chromium.org/277433003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269566 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment