michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: package org.mozilla.gecko.background.sync.helpers; michael@0: michael@0: import org.mozilla.gecko.sync.repositories.delegates.RepositorySessionCreationDelegate; michael@0: michael@0: public abstract class SimpleSuccessCreationDelegate extends DefaultDelegate implements RepositorySessionCreationDelegate { michael@0: @Override michael@0: public void onSessionCreateFailed(Exception ex) { michael@0: performNotify("Session creation failed", ex); michael@0: } michael@0: michael@0: @Override michael@0: public RepositorySessionCreationDelegate deferredCreationDelegate() { michael@0: return this; michael@0: } michael@0: }