blob: 41dbf468460aa685139bcf22f9a50d8bff16f9d8 [file] [log] [blame]
// Copyright 2016 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.
// clang-format off
import { sendWithPromise } from 'chrome://resources/js/cr.m.js';
export class ProfileInfoBrowserProxyImpl {
getProfileInfo() {
return sendWithPromise('getProfileInfo');
}
getProfileStatsCount() {
chrome.send('getProfileStatsCount');
}
static getInstance() {
return instance || (instance = new ProfileInfoBrowserProxyImpl());
}
static setInstance(obj) {
instance = obj;
}
}
let instance = null;