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

Side by Side Diff: chrome/service/service_process_prefs.cc

Issue 1167163002: chrome: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing message_loop.h includes. Created 5 years, 6 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
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/service/service_process_prefs_unittest.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/service/service_process_prefs.h" 5 #include "chrome/service/service_process_prefs.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/prefs/pref_filter.h" 7 #include "base/prefs/pref_filter.h"
8 #include "base/thread_task_runner_handle.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 10
11 ServiceProcessPrefs::ServiceProcessPrefs( 11 ServiceProcessPrefs::ServiceProcessPrefs(
12 const base::FilePath& pref_filename, 12 const base::FilePath& pref_filename,
13 base::SequencedTaskRunner* task_runner) 13 base::SequencedTaskRunner* task_runner)
14 : prefs_(new JsonPrefStore(pref_filename, 14 : prefs_(new JsonPrefStore(pref_filename,
15 task_runner, 15 task_runner,
16 scoped_ptr<PrefFilter>())) { 16 scoped_ptr<PrefFilter>())) {
17 } 17 }
18 18
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 void ServiceProcessPrefs::SetValue(const std::string& key, base::Value* value) { 96 void ServiceProcessPrefs::SetValue(const std::string& key, base::Value* value) {
97 prefs_->SetValue(key, value, WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 97 prefs_->SetValue(key, value, WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
98 } 98 }
99 99
100 void ServiceProcessPrefs::RemovePref(const std::string& key) { 100 void ServiceProcessPrefs::RemovePref(const std::string& key) {
101 prefs_->RemoveValue(key, WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS); 101 prefs_->RemoveValue(key, WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
102 } 102 }
103 103
OLDNEW
« no previous file with comments | « chrome/service/service_process.cc ('k') | chrome/service/service_process_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698