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

Side by Side Diff: chrome/browser/managed_mode/managed_user_sync_service.cc

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/managed_mode/managed_user_sync_service.h" 5 #include "chrome/browser/managed_mode/managed_user_sync_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 13 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
14 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "components/user_prefs/pref_registry_syncable.h" 15 #include "components/pref_registry/pref_registry_syncable.h"
16 #include "sync/api/sync_change.h" 16 #include "sync/api/sync_change.h"
17 #include "sync/api/sync_data.h" 17 #include "sync/api/sync_data.h"
18 #include "sync/api/sync_error.h" 18 #include "sync/api/sync_error.h"
19 #include "sync/api/sync_error_factory.h" 19 #include "sync/api/sync_error_factory.h"
20 #include "sync/api/sync_merge_result.h" 20 #include "sync/api/sync_merge_result.h"
21 #include "sync/protocol/sync.pb.h" 21 #include "sync/protocol/sync.pb.h"
22 22
23 #if defined(OS_CHROMEOS) 23 #if defined(OS_CHROMEOS)
24 #include "chrome/browser/chromeos/login/default_user_images.h" 24 #include "chrome/browser/chromeos/login/default_user_images.h"
25 #endif 25 #endif
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 561
562 void ManagedUserSyncService::DispatchCallbacks() { 562 void ManagedUserSyncService::DispatchCallbacks() {
563 const base::DictionaryValue* managed_users = 563 const base::DictionaryValue* managed_users =
564 prefs_->GetDictionary(prefs::kManagedUsers); 564 prefs_->GetDictionary(prefs::kManagedUsers);
565 for (std::vector<ManagedUsersCallback>::iterator it = callbacks_.begin(); 565 for (std::vector<ManagedUsersCallback>::iterator it = callbacks_.begin();
566 it != callbacks_.end(); ++it) { 566 it != callbacks_.end(); ++it) {
567 it->Run(managed_users); 567 it->Run(managed_users);
568 } 568 }
569 callbacks_.clear(); 569 callbacks_.clear();
570 } 570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698