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

Unified Diff: chrome/browser/sync/internal_api/sync_manager.cc

Issue 8366030: Introduce the plumbing necessary to report Unrecoverable error from model safe workers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For a high level review. Created 9 years, 2 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: chrome/browser/sync/internal_api/sync_manager.cc
diff --git a/chrome/browser/sync/internal_api/sync_manager.cc b/chrome/browser/sync/internal_api/sync_manager.cc
index c8435b65b996a08fe7dab7efb01fca927e24a726..b4fccb3edb970bc61cafb6f2461255c9a74f9038 100644
--- a/chrome/browser/sync/internal_api/sync_manager.cc
+++ b/chrome/browser/sync/internal_api/sync_manager.cc
@@ -1690,6 +1690,14 @@ void SyncManager::SyncInternal::OnSyncEngineEvent(
return;
}
+ if (event.what_happened == SyncEngineEvent::UNRECOVERABLE_ERROR) {
+ FOR_EACH_OBSERVER(SyncManager::Observer, observers_,
+ OnUnrecoverableError(
+ event.unrecoverable_error_info.location,
+ event.unrecoverable_error_info.message));
+ return;
+ }
+
}
void SyncManager::SyncInternal::SetJsEventHandler(

Powered by Google App Engine
This is Rietveld 408576698