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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler.cc

Issue 8588013: Fix crash in SyncSetupWizard::IsVisible() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7811dbd1af07b884f4572fc7e0fee320502d4792..74a35f863a64253f0d46768361963498043bb7f2 100644
--- a/chrome/browser/ui/webui/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler.cc
@@ -715,7 +715,9 @@ void SyncSetupHandler::OpenSyncSetup() {
bool SyncSetupHandler::FocusExistingWizard() {
Profile* profile = Profile::FromWebUI(web_ui_);
ProfileSyncService* service = profile->GetProfileSyncService();
- DCHECK(service);
+ if (!service)
+ return false;
+
// If the wizard is already visible, focus it.
if (service->get_wizard().IsVisible()) {
service->get_wizard().Focus();
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698