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

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

Issue 10821121: sync: Attempt to recover from directory corruption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | sync/syncable/directory.cc » ('j') | sync/syncable/on_disk_directory_backing_store.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index af0299b953503f2c7c69d2580da708f882a4aaea..ef177fea8df8fb760dddc6bf223201f40251701a 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -385,6 +385,13 @@ void ProfileSyncService::OnSyncConfigureRetry() {
// unrecoverable error, even if the platform has auto start disabled.
// Note: In those scenarios the UI does not wait for the configuration
// to finish.
+ //
+ // TODO(rlarocque): Consider making this UnrecoverableError less special.
+ // This exception made sense at the time it was implemented, but our new
+ // directory corruption recovery mechanism makes it obsolete. By the time we
+ // get here, we will have already tried and failed to delete the directory.
+ // Whether or not we try to delete it again after the error is thrown likely
+ // won't make a difference.
tim (not reviewing) 2012/08/01 21:31:59 Hmm... I don't follow. I thought this was called
rlarocque 2012/08/01 21:53:50 Woops, that was a dumb mistake. This comment belo
if (!auto_start_enabled_ && !backend_initialized_) {
OnInternalUnrecoverableError(FROM_HERE,
"Configure failed to download.",
« no previous file with comments | « no previous file | sync/syncable/directory.cc » ('j') | sync/syncable/on_disk_directory_backing_store.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698