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

Side by Side Diff: chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.cc

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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/chromeos/login/users/avatar/user_image_sync_observer.h" 5 #include "chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/chromeos/login/screens/user_image_screen.h" 9 #include "chrome/browser/chromeos/login/screens/user_image_screen.h"
10 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h" 10 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager.h"
11 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" 11 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h"
12 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im ages.h" 12 #include "chrome/browser/chromeos/login/users/default_user_image/default_user_im ages.h"
13 #include "chrome/browser/chromeos/login/wizard_controller.h" 13 #include "chrome/browser/chromeos/login/wizard_controller.h"
14 #include "chrome/browser/chromeos/profiles/profile_helper.h" 14 #include "chrome/browser/chromeos/profiles/profile_helper.h"
15 #include "chrome/browser/prefs/pref_service_syncable_util.h" 15 #include "chrome/browser/prefs/pref_service_syncable_util.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "components/prefs/pref_change_registrar.h" 17 #include "components/prefs/pref_change_registrar.h"
18 #include "components/prefs/scoped_user_pref_update.h" 18 #include "components/prefs/scoped_user_pref_update.h"
19 #include "components/syncable_prefs/pref_service_syncable.h" 19 #include "components/sync_preferences/pref_service_syncable.h"
20 #include "components/user_manager/user.h" 20 #include "components/user_manager/user.h"
21 #include "components/user_manager/user_manager.h" 21 #include "components/user_manager/user_manager.h"
22 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
23 #include "content/public/browser/notification_service.h" 23 #include "content/public/browser/notification_service.h"
24 24
25 namespace chromeos { 25 namespace chromeos {
26 namespace { 26 namespace {
27 27
28 // A dictionary containing info about user image. 28 // A dictionary containing info about user image.
29 const char kUserImageInfo[] = "user_image_info"; 29 const char kUserImageInfo[] = "user_image_info";
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 UserImageScreen* screen = UserImageScreen::Get(wizard_controller); 192 UserImageScreen* screen = UserImageScreen::Get(wizard_controller);
193 if (wizard_controller->current_screen() == screen) { 193 if (wizard_controller->current_screen() == screen) {
194 if (screen->user_selected_image()) 194 if (screen->user_selected_image())
195 return false; 195 return false;
196 } 196 }
197 } 197 }
198 return true; 198 return true;
199 } 199 }
200 200
201 } // namespace chromeos 201 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698