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

Side by Side Diff: chrome/browser/sync/glue/preference_change_processor.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
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 "chrome/browser/sync/glue/preference_change_processor.h" 5 #include "chrome/browser/sync/glue/preference_change_processor.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/browser_thread.h" 13 #include "chrome/browser/browser_thread.h"
14 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/sync/glue/preference_model_associator.h" 15 #include "chrome/browser/sync/glue/preference_model_associator.h"
16 #include "chrome/browser/sync/profile_sync_service.h" 16 #include "chrome/browser/sync/profile_sync_service.h"
17 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" 17 #include "chrome/browser/sync/protocol/preference_specifics.pb.h"
18 #include "chrome/common/json_value_serializer.h" 18 #include "chrome/common/json_value_serializer.h"
19 #include "chrome/common/notification_service.h" 19 #include "chrome/common/notification_service.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 21
22 namespace browser_sync { 22 namespace browser_sync {
23 23
24 PreferenceChangeProcessor::PreferenceChangeProcessor( 24 PreferenceChangeProcessor::PreferenceChangeProcessor(
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void PreferenceChangeProcessor::StopObserving() { 218 void PreferenceChangeProcessor::StopObserving() {
219 DCHECK(pref_service_); 219 DCHECK(pref_service_);
220 for (std::set<std::string>::const_iterator it = 220 for (std::set<std::string>::const_iterator it =
221 model_associator_->synced_preferences().begin(); 221 model_associator_->synced_preferences().begin();
222 it != model_associator_->synced_preferences().end(); ++it) { 222 it != model_associator_->synced_preferences().end(); ++it) {
223 registrar_.Remove((*it).c_str(), this); 223 registrar_.Remove((*it).c_str(), this);
224 } 224 }
225 } 225 }
226 226
227 } // namespace browser_sync 227 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_model_associator.cc ('k') | chrome/browser/sync/glue/preference_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698