#include "chrome/browser/ui/views/theme_profile_key.h"
#include "base/memory/raw_ptr.h"
#include "base/scoped_observation.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_observer.h"
#include "ui/aura/window.h"
#include "ui/base/class_property.h"
namespace {
class ProfileTracker : public ProfileObserver { … };
}
DEFINE_UI_CLASS_PROPERTY_TYPE(…)
DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(…)
void SetThemeProfileForWindow(aura::Window* window, Profile* profile) { … }
Profile* GetThemeProfileForWindow(aura::Window* window) { … }