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

Unified Diff: sync/tools/null_invalidation_state_tracker.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « sync/tools/null_invalidation_state_tracker.h ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/null_invalidation_state_tracker.cc
diff --git a/sync/tools/null_invalidation_state_tracker.cc b/sync/tools/null_invalidation_state_tracker.cc
deleted file mode 100644
index 8e997846a906a514c0366d8d25752f1577a40b2c..0000000000000000000000000000000000000000
--- a/sync/tools/null_invalidation_state_tracker.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/tools/null_invalidation_state_tracker.h"
-
-#include "base/base64.h"
-#include "base/bind.h"
-#include "base/callback.h"
-#include "base/location.h"
-#include "base/logging.h"
-#include "base/task_runner.h"
-#include "components/invalidation/public/invalidation_util.h"
-
-namespace syncer {
-
-NullInvalidationStateTracker::NullInvalidationStateTracker() {}
-NullInvalidationStateTracker::~NullInvalidationStateTracker() {}
-
-void NullInvalidationStateTracker::ClearAndSetNewClientId(
- const std::string& data) {
- LOG(INFO) << "Setting invalidator client ID to: " << data;
-}
-
-std::string NullInvalidationStateTracker::GetInvalidatorClientId() const {
- // The caller of this function is probably looking for an ID it can use to
- // identify this client as the originator of some notifiable change. It does
- // this so the invalidation server can prevent it from being notified of its
- // own changes. This invalidation state tracker doesn't remember its ID, so
- // it can't support this feature.
- NOTREACHED() << "This state tracker does not support reflection-blocking";
- return std::string();
-}
-
-std::string NullInvalidationStateTracker::GetBootstrapData() const {
- return std::string();
-}
-
-void NullInvalidationStateTracker::SetBootstrapData(const std::string& data) {
- std::string base64_data;
- base::Base64Encode(data, &base64_data);
- LOG(INFO) << "Setting bootstrap data to: " << base64_data;
-}
-
-void NullInvalidationStateTracker::Clear() {
- // We have no members to clear.
-}
-
-void NullInvalidationStateTracker::SetSavedInvalidations(
- const UnackedInvalidationsMap& states) {
- // Do nothing.
-}
-
-UnackedInvalidationsMap
-NullInvalidationStateTracker::GetSavedInvalidations() const {
- return UnackedInvalidationsMap();
-}
-
-} // namespace syncer
« no previous file with comments | « sync/tools/null_invalidation_state_tracker.h ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698