blob: 0449babff55853b4190c9e0a540797ab22f52a84 [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/extensions/users_private/users_private_delegate.h"
#include <memory>
#include "chrome/browser/profiles/profile.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
namespace extensions {
namespace users_private = api::users_private;
UsersPrivateDelegate::UsersPrivateDelegate(Profile* profile)
: profile_(profile) {}
UsersPrivateDelegate::~UsersPrivateDelegate() = default;
PrefsUtil* UsersPrivateDelegate::GetPrefsUtil() {
if (!prefs_util_)
prefs_util_ = std::make_unique<PrefsUtil>(profile_);
return prefs_util_.get();
}
} // namespace extensions