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

Unified Diff: components/browser_sync/profile_sync_components_factory_impl.cc

Issue 2288473002: Implement Dump-on-DCHECK (via a new LogSeverity). (Closed)
Patch Set: Migrate some tests to EXPECT_DCHECK_DEATH Created 4 years 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
Index: components/browser_sync/profile_sync_components_factory_impl.cc
diff --git a/components/browser_sync/profile_sync_components_factory_impl.cc b/components/browser_sync/profile_sync_components_factory_impl.cc
index 00f400dc36036cce7762c45fb68988305de81a7e..2b4229a015bb22f541b27ba8ac20009def42db32 100644
--- a/components/browser_sync/profile_sync_components_factory_impl.cc
+++ b/components/browser_sync/profile_sync_components_factory_impl.cc
@@ -143,7 +143,8 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
// get USS as stable as possible.
sync_service->RegisterDataTypeController(
base::MakeUnique<ModelTypeController>(
- syncer::DEVICE_INFO, base::Bind(&base::debug::DumpWithoutCrashing),
+ syncer::DEVICE_INFO,
+ base::Bind(base::IgnoreResult(&base::debug::DumpWithoutCrashing)),
sync_client_, ui_thread_));
} else {
sync_service->RegisterDataTypeController(
@@ -158,7 +159,8 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
if (base::FeatureList::IsEnabled(switches::kSyncUSSAutocomplete)) {
sync_service->RegisterDataTypeController(
base::MakeUnique<ModelTypeController>(
- syncer::AUTOFILL, base::Bind(&base::debug::DumpWithoutCrashing),
+ syncer::AUTOFILL,
+ base::Bind(base::IgnoreResult(&base::debug::DumpWithoutCrashing)),
sync_client_, db_thread_));
} else {
sync_service->RegisterDataTypeController(

Powered by Google App Engine
This is Rietveld 408576698