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

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

Issue 2639393002: [Sync] Make SMTP always have the dump stack function. (Closed)
Patch Set: Rebase. 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 12702868ce18b6f1d878ccbdccc6db9bb03d10ec..c2d71f4fd0862f69009f6f8337353819e62fab30 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)))));
skym 2017/01/19 17:58:36 Can you plumb channel through to here and filter o
maxbogue 2017/01/20 20:39:47 Whoops, I never responded to this. I've prepared a
}
// static

Powered by Google App Engine
This is Rietveld 408576698