diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 23:40:06 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 23:40:06 +0000 |
commit | f6ec8b2db8c6fcaa2466b6294d49260538ca00a4 (patch) | |
tree | 839cc2c9f268d67cb34743b753771b3b9114ed5e /chrome/browser/sync/unrecoverable_error_handler.h | |
parent | 1b9c01fef349b0721f65248ae9f762e47218af95 (diff) | |
download | chromium_src-f6ec8b2db8c6fcaa2466b6294d49260538ca00a4.zip chromium_src-f6ec8b2db8c6fcaa2466b6294d49260538ca00a4.tar.gz chromium_src-f6ec8b2db8c6fcaa2466b6294d49260538ca00a4.tar.bz2 |
sync: Add location info to unrecoverable errors, and remove the UnrecoverableErrorHandler from model associators since it's illegal to use from there anyway.
BUG=42695
TEST=data type controller unittests
Review URL: http://codereview.chromium.org/2002012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/unrecoverable_error_handler.h')
-rw-r--r-- | chrome/browser/sync/unrecoverable_error_handler.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/sync/unrecoverable_error_handler.h b/chrome/browser/sync/unrecoverable_error_handler.h index 2bad8c5..d8950e6 100644 --- a/chrome/browser/sync/unrecoverable_error_handler.h +++ b/chrome/browser/sync/unrecoverable_error_handler.h @@ -5,6 +5,10 @@ #ifndef CHROME_BROWSER_SYNC_UNRECOVERABLE_ERROR_HANDLER_H_ #define CHROME_BROWSER_SYNC_UNRECOVERABLE_ERROR_HANDLER_H_ +#include <string> + +#include "base/tracked.h" + namespace browser_sync { class UnrecoverableErrorHandler { @@ -13,7 +17,8 @@ class UnrecoverableErrorHandler { // syncer model are inconsistent, or similar. The ProfileSyncService will // try to avoid doing any work to avoid crashing or corrupting things // further, and will report an error status if queried. - virtual void OnUnrecoverableError() = 0; + virtual void OnUnrecoverableError(const tracked_objects::Location& from_here, + const std::string& message) = 0; protected: virtual ~UnrecoverableErrorHandler() { } }; |