toolkit/xre/nsNativeAppSupportDefault.cpp
author Allison Naaktgeboren <ally@mozilla.com>
Thu, 18 Jul 2013 10:21:35 -0400
changeset 152252 27377c1b3282db20fd8b17085b236e30fb68d087
parent 98983 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 844642 - Telemetry opt in and out in Firefox Options. r=tabraldes

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsNativeAppSupportBase.h"

nsresult
NS_CreateNativeAppSupport( nsINativeAppSupport **aResult )
{
  nsNativeAppSupportBase* native = new nsNativeAppSupportBase();
  if (!native) return NS_ERROR_OUT_OF_MEMORY;

  *aResult = native;
  NS_ADDREF( *aResult );

  return NS_OK;
}