Index: chrome/browser/sync/engine/net/server_connection_manager.h |
=================================================================== |
--- chrome/browser/sync/engine/net/server_connection_manager.h (revision 58702) |
+++ chrome/browser/sync/engine/net/server_connection_manager.h (working copy) |
@@ -213,8 +213,7 @@ |
ServerConnectionManager(const std::string& server, |
int port, |
bool use_ssl, |
- const std::string& user_agent, |
- const std::string& client_id); |
+ const std::string& user_agent); |
virtual ~ServerConnectionManager(); |
@@ -225,14 +224,6 @@ |
virtual bool PostBufferWithCachedAuth(const PostBufferParams* params, |
ScopedServerStatusWatcher* watcher); |
- // POSTS buffer_in and reads a response into buffer_out. Add a specific auth |
- // token to http headers. |
- // |
- // Returns true if executed successfully. |
- virtual bool PostBufferWithAuth(const PostBufferParams* params, |
- const std::string& auth_token, |
- ScopedServerStatusWatcher* watcher); |
- |
// Checks the time on the server. Returns false if the request failed. |time| |
// is an out parameter that stores the value returned from the server. |
virtual bool CheckTime(int32* out_time); |
@@ -289,6 +280,11 @@ |
return NULL; // For testing. |
}; |
+ void set_client_id(const std::string& client_id) { |
+ DCHECK(client_id_.empty()); |
+ client_id_.assign(client_id); |
+ } |
+ |
void set_auth_token(const std::string& auth_token) { |
// TODO(chron): Consider adding a message loop check here. |
AutoLock lock(auth_token_mutex_); |
@@ -333,7 +329,7 @@ |
int sync_server_port_; |
// The unique id of the user's client. |
- const std::string client_id_; |
+ std::string client_id_; |
// The user-agent string for HTTP. |
std::string user_agent_; |