| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/chromeos/extensions/users_private/users_private_delegate.h" |
| |
| #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() { |
| } |
| |
| PrefsUtil* UsersPrivateDelegate::GetPrefsUtil() { |
| if (!prefs_util_) |
| prefs_util_.reset(new PrefsUtil(profile_)); |
| |
| return prefs_util_.get(); |
| } |
| |
| } // namespace extensions |