diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 21:33:49 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 21:33:49 +0000 |
commit | 1c085a63a3d62c0bf5043a8336dce0e9923917f8 (patch) | |
tree | 3909ce2a3a51ec2f5173d63c97952eed0a128313 /remoting/client/client_util.cc | |
parent | 9e7fbfea4a79dbb7f3aa8e71f41b3ca4e40fe3b7 (diff) | |
download | chromium_src-1c085a63a3d62c0bf5043a8336dce0e9923917f8.zip chromium_src-1c085a63a3d62c0bf5043a8336dce0e9923917f8.tar.gz chromium_src-1c085a63a3d62c0bf5043a8336dce0e9923917f8.tar.bz2 |
Change ClientConfig to be a struct since it's just a dumb data carrier.
Also, the old method of passing around a pointer was not safe due to
object lifetime issues.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/client_util.cc')
-rw-r--r-- | remoting/client/client_util.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/remoting/client/client_util.cc b/remoting/client/client_util.cc index 9e53682..215ae9c 100644 --- a/remoting/client/client_util.cc +++ b/remoting/client/client_util.cc @@ -72,9 +72,9 @@ bool GetLoginInfoFromArgs(int argc, char** argv, ClientConfig* config) { return false; } - config->set_host_jid(host_jid); - config->set_username(username); - config->set_auth_token(auth_token); + config->host_jid = host_jid; + config->username = username; + config->auth_token = auth_token; return true; } @@ -110,9 +110,9 @@ bool GetLoginInfoFromUrlParams(const std::string& url, ClientConfig* config) { } std::string host_jid = parts[2].substr(pos + 1); - config->set_host_jid(host_jid); - config->set_username(username); - config->set_auth_token(auth_token); + config->host_jid = host_jid; + config->username = username; + config->auth_token = auth_token; return true; } |