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

Unified Diff: chrome/browser/chromeos/login/managed/locally_managed_user_creation_controller.cc

Issue 23653007: Avatar syncing for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_registration_utility.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/managed/locally_managed_user_creation_controller.cc
diff --git a/chrome/browser/chromeos/login/managed/locally_managed_user_creation_controller.cc b/chrome/browser/chromeos/login/managed/locally_managed_user_creation_controller.cc
index 6d1f4041d2661940131e3638cbd07a4faae2f16c..c0efb45e970c3ac32633874f50e1dccf1f055b24 100644
--- a/chrome/browser/chromeos/login/managed/locally_managed_user_creation_controller.cc
+++ b/chrome/browser/chromeos/login/managed/locally_managed_user_creation_controller.cc
@@ -29,6 +29,7 @@ namespace chromeos {
namespace {
+const int kDummyAvatarIndex = -111;
const int kMasterKeySize = 32;
const int kUserCreationTimeoutSeconds = 60; // 60 seconds.
@@ -160,7 +161,8 @@ void LocallyManagedUserCreationController::OnAddKeySuccess() {
creation_context_->manager_profile);
VLOG(1) << "Creating user on server";
- ManagedUserRegistrationInfo info(creation_context_->display_name);
+ ManagedUserRegistrationInfo info(creation_context_->display_name,
+ kDummyAvatarIndex);
info.master_key = creation_context_->master_key;
creation_context_->registration_utility->Register(
creation_context_->sync_user_id,
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_registration_utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698