summaryrefslogtreecommitdiffstats
path: root/sync/engine
diff options
context:
space:
mode:
authorpavely@chromium.org <pavely@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-25 01:24:11 +0000
committerpavely@chromium.org <pavely@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-25 01:24:11 +0000
commitdd8a3c5d6cba7edcb1c52ebe2d02c9552c90ebd2 (patch)
treefa3900a441e613a4ee3195f409e9c4a1829a1d49 /sync/engine
parent081086b1c0ccaf47076b14c70f216ae27cad7a9c (diff)
downloadchromium_src-dd8a3c5d6cba7edcb1c52ebe2d02c9552c90ebd2.zip
chromium_src-dd8a3c5d6cba7edcb1c52ebe2d02c9552c90ebd2.tar.gz
chromium_src-dd8a3c5d6cba7edcb1c52ebe2d02c9552c90ebd2.tar.bz2
Remove references to GaiaConstants::kSyncService from sync
This CL is followup after https://codereview.chromium.org/22342003/ I've removed references to GaiaConstants::kSyncService from ProfileSyncService unittests, SyncBackendHost and ProfileSyncService.java There are still references in TokenService, TokenService unittests and chrome/browser/chromeos/login/online_attempt.cc. The last one should not block TokenService migration as it doesn't refer TokenService, but I don't understand that code so decided not to change it. Review URL: https://codereview.chromium.org/31213004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/engine')
-rw-r--r--sync/engine/all_status.cc1
-rw-r--r--sync/engine/net/server_connection_manager.h3
-rw-r--r--sync/engine/sync_engine_event.h3
-rw-r--r--sync/engine/syncer_proto_util.cc7
4 files changed, 0 insertions, 14 deletions
diff --git a/sync/engine/all_status.cc b/sync/engine/all_status.cc
index af3d4fc..e5f5124 100644
--- a/sync/engine/all_status.cc
+++ b/sync/engine/all_status.cc
@@ -101,7 +101,6 @@ void AllStatus::OnSyncEngineEvent(const SyncEngineEvent& event) {
status_ = CalcSyncing(event);
break;
case SyncEngineEvent::STOP_SYNCING_PERMANENTLY:
- case SyncEngineEvent::UPDATED_TOKEN:
break;
case SyncEngineEvent::ACTIONABLE_ERROR:
status_ = CreateBlankStatus();
diff --git a/sync/engine/net/server_connection_manager.h b/sync/engine/net/server_connection_manager.h
index 6f29b91..e6a48f0 100644
--- a/sync/engine/net/server_connection_manager.h
+++ b/sync/engine/net/server_connection_manager.h
@@ -81,9 +81,6 @@ struct SYNC_EXPORT_PRIVATE HttpResponse {
// The size of a download request's payload.
int64 payload_length;
- // Value of the Update-Client-Auth header.
- std::string update_client_auth_header;
-
// Identifies the type of failure, if any.
ServerConnectionCode server_status;
diff --git a/sync/engine/sync_engine_event.h b/sync/engine/sync_engine_event.h
index 3328ff3..25f9692 100644
--- a/sync/engine/sync_engine_event.h
+++ b/sync/engine/sync_engine_event.h
@@ -32,9 +32,6 @@ struct SYNC_EXPORT_PRIVATE SyncEngineEvent {
////////////////////////////////////////////////////////////////
// Generated in response to specific protocol actions or events.
- // New token in updated_token.
- UPDATED_TOKEN,
-
// This is sent after the Syncer (and SyncerThread) have initiated self
// halt due to no longer being permitted to communicate with the server.
// The listener should sever the sync / browser connections and delete sync
diff --git a/sync/engine/syncer_proto_util.cc b/sync/engine/syncer_proto_util.cc
index 863a8c4..bfd8151 100644
--- a/sync/engine/syncer_proto_util.cc
+++ b/sync/engine/syncer_proto_util.cc
@@ -276,13 +276,6 @@ bool SyncerProtoUtil::PostAndProcessHeaders(ServerConnectionManager* scm,
return false;
}
- std::string new_token = params.response.update_client_auth_header;
- if (!new_token.empty()) {
- SyncEngineEvent event(SyncEngineEvent::UPDATED_TOKEN);
- event.updated_token = new_token;
- session->context()->NotifyListeners(event);
- }
-
if (response->ParseFromString(params.buffer_out)) {
// TODO(tim): This is an egregious layering violation (bug 35060).
switch (response->error_code()) {