summaryrefslogtreecommitdiffstats
path: root/sync/internal_api
diff options
context:
space:
mode:
Diffstat (limited to 'sync/internal_api')
-rw-r--r--sync/internal_api/debug_info_event_listener.cc5
-rw-r--r--sync/internal_api/debug_info_event_listener.h1
-rw-r--r--sync/internal_api/js_sync_manager_observer.cc7
-rw-r--r--sync/internal_api/js_sync_manager_observer.h1
-rw-r--r--sync/internal_api/js_sync_manager_observer_unittest.cc11
-rw-r--r--sync/internal_api/public/sync_manager.h6
-rw-r--r--sync/internal_api/sync_manager_impl_unittest.cc1
7 files changed, 0 insertions, 32 deletions
diff --git a/sync/internal_api/debug_info_event_listener.cc b/sync/internal_api/debug_info_event_listener.cc
index f46c4ee..ec30da8 100644
--- a/sync/internal_api/debug_info_event_listener.cc
+++ b/sync/internal_api/debug_info_event_listener.cc
@@ -84,11 +84,6 @@ void DebugInfoEventListener::OnBootstrapTokenUpdated(
CreateAndAddEvent(sync_pb::DebugEventInfo::KEYSTORE_TOKEN_UPDATED);
}
-void DebugInfoEventListener::OnStopSyncingPermanently() {
- DCHECK(thread_checker_.CalledOnValidThread());
- CreateAndAddEvent(sync_pb::DebugEventInfo::STOP_SYNCING_PERMANENTLY);
-}
-
void DebugInfoEventListener::OnEncryptedTypesChanged(
ModelTypeSet encrypted_types,
bool encrypt_everything) {
diff --git a/sync/internal_api/debug_info_event_listener.h b/sync/internal_api/debug_info_event_listener.h
index 15cc0a6..661d476 100644
--- a/sync/internal_api/debug_info_event_listener.h
+++ b/sync/internal_api/debug_info_event_listener.h
@@ -48,7 +48,6 @@ class SYNC_EXPORT_PRIVATE DebugInfoEventListener
bool success, ModelTypeSet restored_types) OVERRIDE;
virtual void OnConnectionStatusChange(
ConnectionStatus connection_status) OVERRIDE;
- virtual void OnStopSyncingPermanently() OVERRIDE;
virtual void OnActionableError(
const SyncProtocolError& sync_error) OVERRIDE;
diff --git a/sync/internal_api/js_sync_manager_observer.cc b/sync/internal_api/js_sync_manager_observer.cc
index 9f8848d..e74db84 100644
--- a/sync/internal_api/js_sync_manager_observer.cc
+++ b/sync/internal_api/js_sync_manager_observer.cc
@@ -78,13 +78,6 @@ void JsSyncManagerObserver::OnInitializationComplete(
JsEventDetails(&details));
}
-void JsSyncManagerObserver::OnStopSyncingPermanently() {
- if (!event_handler_.IsInitialized()) {
- return;
- }
- HandleJsEvent(FROM_HERE, "onStopSyncingPermanently", JsEventDetails());
-}
-
void JsSyncManagerObserver::HandleJsEvent(
const tracked_objects::Location& from_here,
const std::string& name, const JsEventDetails& details) {
diff --git a/sync/internal_api/js_sync_manager_observer.h b/sync/internal_api/js_sync_manager_observer.h
index 17a40e7..45b8f05 100644
--- a/sync/internal_api/js_sync_manager_observer.h
+++ b/sync/internal_api/js_sync_manager_observer.h
@@ -40,7 +40,6 @@ class SYNC_EXPORT_PRIVATE JsSyncManagerObserver : public SyncManager::Observer {
const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener,
bool success,
syncer::ModelTypeSet restored_types) OVERRIDE;
- virtual void OnStopSyncingPermanently() OVERRIDE;
virtual void OnActionableError(
const SyncProtocolError& sync_protocol_error) OVERRIDE;
diff --git a/sync/internal_api/js_sync_manager_observer_unittest.cc b/sync/internal_api/js_sync_manager_observer_unittest.cc
index e4b8c64..46f0319 100644
--- a/sync/internal_api/js_sync_manager_observer_unittest.cc
+++ b/sync/internal_api/js_sync_manager_observer_unittest.cc
@@ -44,17 +44,6 @@ class JsSyncManagerObserverTest : public testing::Test {
}
};
-TEST_F(JsSyncManagerObserverTest, NoArgNotifiations) {
- InSequence dummy;
-
- EXPECT_CALL(mock_js_event_handler_,
- HandleJsEvent("onStopSyncingPermanently",
- HasDetails(JsEventDetails())));
-
- js_sync_manager_observer_.OnStopSyncingPermanently();
- PumpLoop();
-}
-
TEST_F(JsSyncManagerObserverTest, OnInitializationComplete) {
base::DictionaryValue expected_details;
syncer::ModelTypeSet restored_types;
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index de8ee79..54e12b6 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -219,12 +219,6 @@ class SYNC_EXPORT SyncManager : public syncer::InvalidationHandler {
bool success,
ModelTypeSet restored_types) = 0;
- // We are no longer permitted to communicate with the server. Sync should
- // be disabled and state cleaned up at once. This can happen for a number
- // of reasons, e.g. swapping from a test instance to production, or a
- // global stop syncing operation has wiped the store.
- virtual void OnStopSyncingPermanently() = 0;
-
virtual void OnActionableError(
const SyncProtocolError& sync_protocol_error) = 0;
diff --git a/sync/internal_api/sync_manager_impl_unittest.cc b/sync/internal_api/sync_manager_impl_unittest.cc
index 29d80e0..369b1d8 100644
--- a/sync/internal_api/sync_manager_impl_unittest.cc
+++ b/sync/internal_api/sync_manager_impl_unittest.cc
@@ -645,7 +645,6 @@ class SyncManagerObserverMock : public SyncManager::Observer {
bool,
syncer::ModelTypeSet)); // NOLINT
MOCK_METHOD1(OnConnectionStatusChange, void(ConnectionStatus)); // NOLINT
- MOCK_METHOD0(OnStopSyncingPermanently, void()); // NOLINT
MOCK_METHOD1(OnUpdatedToken, void(const std::string&)); // NOLINT
MOCK_METHOD1(OnActionableError,
void(const SyncProtocolError&)); // NOLINT