blob: 7c4e27f5b10be77b9169cbc3198b551f7b2dbda3 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/user_prefs/test/test_browser_context_with_prefs.h"
#include "components/user_prefs/user_prefs.h"
namespace user_prefs {
TestBrowserContextWithPrefs::TestBrowserContextWithPrefs()
: browser_context_dependency_manager_(
BrowserContextDependencyManager::GetInstance()) {
browser_context_dependency_manager_->MarkBrowserContextLive(this);
user_prefs::UserPrefs::Set(this, &prefs_);
}
TestBrowserContextWithPrefs::~TestBrowserContextWithPrefs() {
browser_context_dependency_manager_->DestroyBrowserContextServices(this);
}
} // namespace user_prefs