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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 388003002: Sync: Display non-severe errors on about:sync in gray color rather than red. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Windows specific build issue caused by using SEVERITY_ERROR for SyncError::Severity Created 6 years, 5 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/profile_sync_components_factory_impl.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc
index 1b927ae07a776ce24932765e20d8cb65ad33190d..c204ea3d067959fe767313f2253aa503ea4a3519 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
@@ -185,7 +185,9 @@ void ProfileSyncComponentsFactoryImpl::DisableBrokenType(
const tracked_objects::Location& from_here,
const std::string& message) {
ProfileSyncService* p = ProfileSyncServiceFactory::GetForProfile(profile_);
- p->DisableDatatype(type, from_here, message);
+ syncer::SyncError error(
+ from_here, syncer::SyncError::DATATYPE_ERROR, message, type);
+ p->DisableDatatype(type, error);
}
DataTypeController::DisableTypeCallback

Powered by Google App Engine
This is Rietveld 408576698