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

Unified Diff: components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc

Issue 2650643004: [Sync] Make SMTP always have the dump stack function. (Closed)
Patch Set: Created 3 years, 11 months 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/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
diff --git a/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc b/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
index e569609ee57e554805867312464fd2ab4d94e31d..0bf47d314ba2ab9ea4a087443d69be3858b8fc3f 100644
--- a/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
+++ b/components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc
@@ -11,6 +11,7 @@
#include <vector>
#include "base/bind.h"
+#include "base/debug/dump_without_crashing.h"
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/proto/autofill_sync.pb.h"
@@ -25,6 +26,7 @@
using base::Optional;
using base::Time;
+using base::debug::DumpWithoutCrashing;
using sync_pb::AutofillSpecifics;
using syncer::EntityChange;
using syncer::EntityChangeList;
@@ -274,7 +276,10 @@ void AutocompleteSyncBridge::CreateForWebDataServiceAndBackend(
web_data_service->GetDBUserData()->SetUserData(
UserDataKey(),
new AutocompleteSyncBridge(
- web_data_backend, base::Bind(&ModelTypeChangeProcessor::Create)));
+ web_data_backend,
+ base::BindRepeating(
+ &ModelTypeChangeProcessor::Create,
+ base::BindRepeating(base::IgnoreResult(&DumpWithoutCrashing)))));
}
// static

Powered by Google App Engine
This is Rietveld 408576698