Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Issue 277433003: Fix a crash on showing sync setup dialog in guest mode. (Closed)

Created:
6 years, 7 months ago by babu
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269566

Patch Set 1 #

Patch Set 2 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M chrome/browser/ui/webui/sync_setup_handler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
babu
6 years, 7 months ago (2014-05-07 12:50:19 UTC) #1
Andrew T Wilson (Slow)
This seems to constantly revert - is it possible to write a test in this ...
6 years, 7 months ago (2014-05-07 14:25:42 UTC) #2
Andrew T Wilson (Slow)
LGTM if you add a test for this case.
6 years, 7 months ago (2014-05-07 14:28:20 UTC) #3
Evan Stade
Honestly, I think we don't care what happens if a user types an obscure chrome:// ...
6 years, 7 months ago (2014-05-08 01:05:53 UTC) #4
Andrew T Wilson (Slow)
On 2014/05/08 01:05:53, Evan Stade wrote: > Honestly, I think we don't care what happens ...
6 years, 7 months ago (2014-05-08 08:37:58 UTC) #5
babu
On 2014/05/07 14:25:42, Andrew T Wilson wrote: > This seems to constantly revert - is ...
6 years, 7 months ago (2014-05-08 11:57:13 UTC) #6
Andrew T Wilson (Slow)
On 2014/05/08 11:57:13, babu wrote: > On 2014/05/07 14:25:42, Andrew T Wilson wrote: > > ...
6 years, 7 months ago (2014-05-08 11:58:41 UTC) #7
babu
On 2014/05/08 11:58:41, Andrew T Wilson wrote: > > There's no reason to wait for ...
6 years, 7 months ago (2014-05-09 00:18:05 UTC) #8
Andrew T Wilson (Slow)
LGTM - thanks for adding the test!
6 years, 7 months ago (2014-05-09 11:00:54 UTC) #9
babu
On 2014/05/09 11:00:54, Andrew T Wilson wrote: > LGTM - thanks for adding the test! ...
6 years, 7 months ago (2014-05-09 11:32:51 UTC) #10
babu
The CQ bit was checked by sudarsana.nagineni@intel.com
6 years, 7 months ago (2014-05-09 11:32:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarsana.nagineni@intel.com/277433003/20001
6 years, 7 months ago (2014-05-09 11:39:35 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-10 11:57:22 UTC) #13
Message was sent while issue was closed.
Change committed as 269566

Powered by Google App Engine
This is Rietveld 408576698