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

Unified Diff: remoting/host/host_key_pair.cc

Issue 10007048: Cleanup and simplify HostConfig and JsonHostConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « remoting/host/host_key_pair.h ('k') | remoting/host/host_key_pair_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_key_pair.cc
diff --git a/remoting/host/host_key_pair.cc b/remoting/host/host_key_pair.cc
index 7bf1e843a516bdde8b3a4a92d7da782140cb84dc..704f8f88c4745fc5b42a5caf11c0652bfa917e01 100644
--- a/remoting/host/host_key_pair.cc
+++ b/remoting/host/host_key_pair.cc
@@ -44,9 +44,9 @@ bool HostKeyPair::LoadFromString(const std::string& key_base64) {
return true;
}
-bool HostKeyPair::Load(HostConfig* host_config) {
+bool HostKeyPair::Load(const HostConfig& host_config) {
std::string key_base64;
- if (!host_config->GetString(kPrivateKeyConfigPath, &key_base64)) {
+ if (!host_config.GetString(kPrivateKeyConfigPath, &key_base64)) {
LOG(ERROR) << "Private key wasn't found in the config file.";
return false;
}
« no previous file with comments | « remoting/host/host_key_pair.h ('k') | remoting/host/host_key_pair_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698