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

Unified Diff: chrome/browser/sync/glue/password_data_type_controller.cc

Issue 2002012: sync: Add location info to unrecoverable error. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add error handler back to bookmark model associator Created 10 years, 6 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/password_data_type_controller.cc
===================================================================
--- chrome/browser/sync/glue/password_data_type_controller.cc (revision 48898)
+++ chrome/browser/sync/glue/password_data_type_controller.cc (working copy)
@@ -129,16 +129,20 @@
StartDone(result, NOT_RUNNING);
}
-void PasswordDataTypeController::OnUnrecoverableError() {
+void PasswordDataTypeController::OnUnrecoverableError(
+ const tracked_objects::Location& from_here, const std::string& message) {
ChromeThread::PostTask(
- ChromeThread::UI, FROM_HERE,
- NewRunnableMethod(this,
- &PasswordDataTypeController::OnUnrecoverableErrorImpl));
+ ChromeThread::UI, FROM_HERE,
+ NewRunnableMethod(this,
+ &PasswordDataTypeController::OnUnrecoverableErrorImpl,
+ from_here, message));
}
-void PasswordDataTypeController::OnUnrecoverableErrorImpl() {
+void PasswordDataTypeController::OnUnrecoverableErrorImpl(
+ const tracked_objects::Location& from_here,
+ const std::string& message) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
- sync_service_->OnUnrecoverableError();
+ sync_service_->OnUnrecoverableError(from_here, message);
}
} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/glue/password_data_type_controller.h ('k') | chrome/browser/sync/glue/password_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698