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

Unified Diff: chrome/browser/sync/engine/net/server_connection_manager.cc

Issue 3305003: New authorization framework for sync. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
Index: chrome/browser/sync/engine/net/server_connection_manager.cc
===================================================================
--- chrome/browser/sync/engine/net/server_connection_manager.cc (revision 58702)
+++ chrome/browser/sync/engine/net/server_connection_manager.cc (working copy)
@@ -135,11 +135,9 @@
const string& server,
int port,
bool use_ssl,
- const string& user_agent,
- const string& client_id)
+ const string& user_agent)
: sync_server_(server),
sync_server_port_(port),
- client_id_(client_id),
user_agent_(user_agent),
use_ssl_(use_ssl),
proto_sync_path_(kSyncServerSyncPath),
@@ -163,7 +161,6 @@
channel_->NotifyListeners(event);
}
-// Uses currently set auth token. Set by AuthWatcher.
bool ServerConnectionManager::PostBufferWithCachedAuth(
const PostBufferParams* params, ScopedServerStatusWatcher* watcher) {
string path =
@@ -171,14 +168,6 @@
return PostBufferToPath(params, path, auth_token(), watcher);
}
-bool ServerConnectionManager::PostBufferWithAuth(const PostBufferParams* params,
- const string& auth_token, ScopedServerStatusWatcher* watcher) {
- string path = MakeSyncServerPath(proto_sync_path(),
- MakeSyncQueryString(client_id_));
-
- return PostBufferToPath(params, path, auth_token, watcher);
-}
-
bool ServerConnectionManager::PostBufferToPath(const PostBufferParams* params,
const string& path, const string& auth_token,
ScopedServerStatusWatcher* watcher) {

Powered by Google App Engine
This is Rietveld 408576698