summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/extension_model_associator.cc
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 19:13:41 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 19:13:41 +0000
commitebce09f8561211765ac3542e3c06f423280fbf14 (patch)
tree7e075007c75761be005d561df520ecdd5c6e00ae /chrome/browser/sync/glue/extension_model_associator.cc
parent578a05c290474305000848620939f02d3e3f214f (diff)
downloadchromium_src-ebce09f8561211765ac3542e3c06f423280fbf14.zip
chromium_src-ebce09f8561211765ac3542e3c06f423280fbf14.tar.gz
chromium_src-ebce09f8561211765ac3542e3c06f423280fbf14.tar.bz2
Revert 94128 - [Sync] Refactor sync datatype error handling.
This introduces SyncError's, which are a convenient way of passing around an error location, type, and message. All datatypes have been refactored to use this, including in the AssociateModels code. A future change will use this to add support for continuing sync even when a datatype fails to start. In addition, eventually a future change will convert the UnrecoverableError handler to use SyncError's as well as have the datatype controller's and datatype manager surface SyncError's to the PSS. BUG=87645 TEST= Review URL: http://codereview.chromium.org/7453014 TBR=zea@chromium.org Review URL: http://codereview.chromium.org/7497014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/glue/extension_model_associator.cc')
-rw-r--r--chrome/browser/sync/glue/extension_model_associator.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/sync/glue/extension_model_associator.cc b/chrome/browser/sync/glue/extension_model_associator.cc
index fbe0e0d..46594b6 100644
--- a/chrome/browser/sync/glue/extension_model_associator.cc
+++ b/chrome/browser/sync/glue/extension_model_associator.cc
@@ -32,24 +32,22 @@ ExtensionModelAssociator::~ExtensionModelAssociator() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
-bool ExtensionModelAssociator::AssociateModels(SyncError* error) {
+bool ExtensionModelAssociator::AssociateModels() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
ExtensionDataMap extension_data_map;
if (!SlurpExtensionData(
traits_, *extension_service_, user_share_, &extension_data_map)) {
- error->Reset(FROM_HERE, "Failed to get extension data.", model_type());
return false;
}
if (!FlushExtensionData(
traits_, extension_data_map, extension_service_, user_share_)) {
- error->Reset(FROM_HERE, "Failed to flush extension data.", model_type());
return false;
}
return true;
}
-bool ExtensionModelAssociator::DisassociateModels(SyncError* error) {
+bool ExtensionModelAssociator::DisassociateModels() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Nothing to do.
return true;