blob: e5dc0999bab2356cd457ef7a7009ac0862f3afc6 [file] [log] [blame]
// Copyright 2019 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 "ash/public/cpp/android_intent_helper.h"
#include "base/logging.h"
namespace ash {
namespace {
AndroidIntentHelper* g_android_intent_helper = nullptr;
}
// static
AndroidIntentHelper* AndroidIntentHelper::GetInstance() {
return g_android_intent_helper;
}
AndroidIntentHelper::AndroidIntentHelper() {
DCHECK(!g_android_intent_helper);
g_android_intent_helper = this;
}
AndroidIntentHelper::~AndroidIntentHelper() {
DCHECK_EQ(g_android_intent_helper, this);
g_android_intent_helper = nullptr;
}
} // namespace ash