| Index: chrome/browser/extensions/extension_sync_service.cc
|
| diff --git a/chrome/browser/extensions/extension_sync_service.cc b/chrome/browser/extensions/extension_sync_service.cc
|
| index 86824c6673779da2f85b79f15c1ccf6b72c6b467..96001aa66919ab7d15c3f006b23252ae53a6788a 100644
|
| --- a/chrome/browser/extensions/extension_sync_service.cc
|
| +++ b/chrome/browser/extensions/extension_sync_service.cc
|
| @@ -34,6 +34,7 @@
|
| #include "sync/api/sync_error_factory.h"
|
|
|
| #if defined(ENABLE_SUPERVISED_USERS)
|
| +#include "chrome/browser/extensions/extension_util.h"
|
| #include "chrome/browser/supervised_user/supervised_user_service.h"
|
| #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
|
| #endif
|
| @@ -315,6 +316,11 @@ void ExtensionSyncService::ApplySyncData(
|
| // sync data, so that we don't end up notifying ourselves.
|
| base::AutoReset<bool> ignore_updates(&ignore_updates_, true);
|
|
|
| + if (extension_sync_data.installed_by_custodian()) {
|
| + extensions::util::SetWasInstalledByCustodian(extension_sync_data.id(),
|
| + profile_, true);
|
| + }
|
| +
|
| syncer::ModelType type = extension_sync_data.is_app() ? syncer::APPS
|
| : syncer::EXTENSIONS;
|
| const std::string& id = extension_sync_data.id();
|
| @@ -503,8 +509,7 @@ void ExtensionSyncService::ApplySyncData(
|
| extension_sync_data.update_url(),
|
| extension_sync_data.version(),
|
| ShouldAllowInstall,
|
| - extension_sync_data.remote_install(),
|
| - extension_sync_data.installed_by_custodian())) {
|
| + extension_sync_data.remote_install())) {
|
| LOG(WARNING) << "Could not add pending extension for " << id;
|
| // This means that the extension is already pending installation, with a
|
| // non-INTERNAL location. Add to pending_sync_data, even though it will
|
|
|