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

Unified Diff: remoting/host/json_host_config.cc

Issue 3060034: Convert src/remoting to std::string/char* away from wstring/wchar_t*. (Closed)
Patch Set: Created 10 years, 5 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/json_host_config.h ('k') | remoting/host/json_host_config_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/json_host_config.cc
diff --git a/remoting/host/json_host_config.cc b/remoting/host/json_host_config.cc
index 891ca789f4a0ce673b7d699165f37767be479a97..cd868ce3dcaf9dbde1ce5b8ed45034a42da2abd6 100644
--- a/remoting/host/json_host_config.cc
+++ b/remoting/host/json_host_config.cc
@@ -38,13 +38,7 @@ bool JsonHostConfig::Read() {
return true;
}
-bool JsonHostConfig::GetString(const std::wstring& path,
- std::wstring* out_value) {
- AutoLock auto_lock(lock_);
- return values_->GetString(path, out_value);
-}
-
-bool JsonHostConfig::GetString(const std::wstring& path,
+bool JsonHostConfig::GetString(const std::string& path,
std::string* out_value) {
AutoLock auto_lock(lock_);
return values_->GetString(path, out_value);
@@ -60,13 +54,7 @@ void JsonHostConfig::Update(Task* task) {
FROM_HERE, NewRunnableMethod(this, &JsonHostConfig::DoWrite));
}
-void JsonHostConfig::SetString(const std::wstring& path,
- const std::wstring& in_value) {
- lock_.AssertAcquired();
- values_->SetString(path, in_value);
-}
-
-void JsonHostConfig::SetString(const std::wstring& path,
+void JsonHostConfig::SetString(const std::string& path,
const std::string& in_value) {
lock_.AssertAcquired();
values_->SetString(path, in_value);
« no previous file with comments | « remoting/host/json_host_config.h ('k') | remoting/host/json_host_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698