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

Side by Side Diff: remoting/host/in_memory_host_config.cc

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/in_memory_host_config.h ('k') | remoting/host/json_host_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/in_memory_host_config.h" 5 #include "remoting/host/in_memory_host_config.h"
6 6
7 #include "base/task.h" 7 #include "base/task.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 InMemoryHostConfig::InMemoryHostConfig() 12 InMemoryHostConfig::InMemoryHostConfig()
13 : values_(new DictionaryValue()) { 13 : values_(new DictionaryValue()) {
14 } 14 }
15 15
16 InMemoryHostConfig::~InMemoryHostConfig() {}
17
16 bool InMemoryHostConfig::GetString(const std::string& path, 18 bool InMemoryHostConfig::GetString(const std::string& path,
17 std::string* out_value) { 19 std::string* out_value) {
18 AutoLock auto_lock(lock_); 20 AutoLock auto_lock(lock_);
19 return values_->GetString(path, out_value); 21 return values_->GetString(path, out_value);
20 } 22 }
21 23
22 void InMemoryHostConfig::Update(Task* task) { 24 void InMemoryHostConfig::Update(Task* task) {
23 { 25 {
24 AutoLock auto_lock(lock_); 26 AutoLock auto_lock(lock_);
25 task->Run(); 27 task->Run();
26 } 28 }
27 delete task; 29 delete task;
28 } 30 }
29 31
30 void InMemoryHostConfig::SetString(const std::string& path, 32 void InMemoryHostConfig::SetString(const std::string& path,
31 const std::string& in_value) { 33 const std::string& in_value) {
32 lock_.AssertAcquired(); 34 lock_.AssertAcquired();
33 values_->SetString(path, in_value); 35 values_->SetString(path, in_value);
34 } 36 }
35 37
36 } // namespace remoting 38 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/in_memory_host_config.h ('k') | remoting/host/json_host_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698