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

Side by Side Diff: chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/supervised_user/legacy/supervised_user_sync_service.h" 5 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h"
6 6
7 #include <stddef.h>
8
7 #include <set> 9 #include <set>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/callback.h" 12 #include "base/callback.h"
11 #include "base/prefs/scoped_user_pref_update.h" 13 #include "base/prefs/scoped_user_pref_update.h"
12 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
14 #include "base/values.h" 16 #include "base/values.h"
17 #include "build/build_config.h"
15 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 19 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
17 #include "chrome/browser/signin/signin_manager_factory.h" 20 #include "chrome/browser/signin/signin_manager_factory.h"
18 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
19 #include "components/pref_registry/pref_registry_syncable.h" 22 #include "components/pref_registry/pref_registry_syncable.h"
20 #include "components/signin/core/browser/signin_manager.h" 23 #include "components/signin/core/browser/signin_manager.h"
21 #include "sync/api/sync_change.h" 24 #include "sync/api/sync_change.h"
22 #include "sync/api/sync_data.h" 25 #include "sync/api/sync_data.h"
23 #include "sync/api/sync_error.h" 26 #include "sync/api/sync_error.h"
24 #include "sync/api/sync_error_factory.h" 27 #include "sync/api/sync_error_factory.h"
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 OnSupervisedUsersChanged()); 570 OnSupervisedUsersChanged());
568 } 571 }
569 572
570 void SupervisedUserSyncService::DispatchCallbacks() { 573 void SupervisedUserSyncService::DispatchCallbacks() {
571 const base::DictionaryValue* supervised_users = 574 const base::DictionaryValue* supervised_users =
572 prefs_->GetDictionary(prefs::kSupervisedUsers); 575 prefs_->GetDictionary(prefs::kSupervisedUsers);
573 for (const auto& callback : callbacks_) 576 for (const auto& callback : callbacks_)
574 callback.Run(supervised_users); 577 callback.Run(supervised_users);
575 callbacks_.clear(); 578 callbacks_.clear();
576 } 579 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698