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

Unified Diff: chrome/browser/sync/glue/typed_url_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/typed_url_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/typed_url_data_type_controller.cc b/chrome/browser/sync/glue/typed_url_data_type_controller.cc
index fbc9e64a93634273bc950b21a4c3717ede8f83d0..e6044398a852e683b55ca7ef17b147ae0b5092ec 100644
--- a/chrome/browser/sync/glue/typed_url_data_type_controller.cc
+++ b/chrome/browser/sync/glue/typed_url_data_type_controller.cc
@@ -121,10 +121,12 @@ void TypedUrlDataTypeController::OnSavingBrowserHistoryDisabledChanged() {
// generate an unrecoverable error. This can be fixed by restarting
// Chrome (on restart, typed urls will not be a registered type).
if (state() != NOT_RUNNING && state() != STOPPING) {
- profile_sync_service()->DisableDatatype(
- syncer::TYPED_URLS,
+ syncer::SyncError error(
FROM_HERE,
- "History saving is now disabled by policy.");
+ syncer::SyncError::DATATYPE_POLICY_ERROR,
+ "History saving is now disabled by policy.",
+ syncer::TYPED_URLS);
+ profile_sync_service()->DisableDatatype(syncer::TYPED_URLS, error);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698