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

Unified Diff: chrome/browser/sync/glue/non_frontend_data_type_controller.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/glue/non_frontend_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/non_frontend_data_type_controller.cc b/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
index ad159f2ed0b90473c4c7bb89b2e1384edde2b130..0b3ac4620b75333dff20de212bd884e3c030de77 100644
--- a/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
+++ b/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
@@ -383,7 +383,9 @@ void NonFrontendDataTypeController::DisableImpl(
const tracked_objects::Location& from_here,
const std::string& message) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- profile_sync_service_->DisableDatatype(type(), from_here, message);
+ syncer::SyncError error(
+ from_here, syncer::SyncError::DATATYPE_ERROR, message, type());
+ profile_sync_service_->DisableDatatype(type(), error);
}
void NonFrontendDataTypeController::RecordAssociationTime(

Powered by Google App Engine
This is Rietveld 408576698