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

Unified Diff: ios/chrome/browser/reading_list/reading_list_model_factory.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
« no previous file with comments | « ios/chrome/browser/reading_list/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/reading_list/reading_list_model_factory.cc
diff --git a/ios/chrome/browser/reading_list/reading_list_model_factory.cc b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
index cb187a143fc4f4b8f1b8c786439d558f056f7c70..b6e2c0c82e63142d3cc462c111c7b7b528561512 100644
--- a/ios/chrome/browser/reading_list/reading_list_model_factory.cc
+++ b/ios/chrome/browser/reading_list/reading_list_model_factory.cc
@@ -15,9 +15,11 @@
#include "components/reading_list/ios/reading_list_model_impl.h"
#include "components/reading_list/ios/reading_list_pref_names.h"
#include "components/reading_list/ios/reading_list_store.h"
+#include "components/sync/base/report_unrecoverable_error.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/experimental_flags.h"
+#include "ios/chrome/common/channel_info.h"
#include "ios/web/public/web_thread.h"
// static
@@ -71,7 +73,9 @@ std::unique_ptr<KeyedService> ReadingListModelFactory::BuildServiceInstanceFor(
std::unique_ptr<ReadingListStore> store = base::MakeUnique<ReadingListStore>(
base::Bind(&syncer::ModelTypeStore::CreateStore, syncer::READING_LIST,
database_dir.AsUTF8Unsafe(), background_task_runner),
- base::Bind(&syncer::ModelTypeChangeProcessor::Create));
+ base::Bind(&syncer::ModelTypeChangeProcessor::Create,
+ base::BindRepeating(&syncer::ReportUnrecoverableError,
+ GetChannel())));
ios::ChromeBrowserState* chrome_browser_state =
ios::ChromeBrowserState::FromBrowserState(context);
« no previous file with comments | « ios/chrome/browser/reading_list/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698