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

Side by Side Diff: components/prefs/pref_change_registrar.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 "base/prefs/pref_change_registrar.h" 5 #include "components/prefs/pref_change_registrar.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/prefs/pref_service.h" 9 #include "components/prefs/pref_service.h"
10 10
11 PrefChangeRegistrar::PrefChangeRegistrar() : service_(NULL) {} 11 PrefChangeRegistrar::PrefChangeRegistrar() : service_(NULL) {}
12 12
13 PrefChangeRegistrar::~PrefChangeRegistrar() { 13 PrefChangeRegistrar::~PrefChangeRegistrar() {
14 // If you see an invalid memory access in this destructor, this 14 // If you see an invalid memory access in this destructor, this
15 // PrefChangeRegistrar might be subscribed to an OffTheRecordProfileImpl that 15 // PrefChangeRegistrar might be subscribed to an OffTheRecordProfileImpl that
16 // has been destroyed. This should not happen any more but be warned. 16 // has been destroyed. This should not happen any more but be warned.
17 // Feel free to contact battre@chromium.org in case this happens. 17 // Feel free to contact battre@chromium.org in case this happens.
18 RemoveAll(); 18 RemoveAll();
19 } 19 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 callback.Run(); 85 callback.Run();
86 } 86 }
87 87
88 PrefService* PrefChangeRegistrar::prefs() { 88 PrefService* PrefChangeRegistrar::prefs() {
89 return service_; 89 return service_;
90 } 90 }
91 91
92 const PrefService* PrefChangeRegistrar::prefs() const { 92 const PrefService* PrefChangeRegistrar::prefs() const {
93 return service_; 93 return service_;
94 } 94 }
OLDNEW
« no previous file with comments | « components/prefs/pref_change_registrar.h ('k') | components/prefs/pref_change_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698