xpcom/glue/XREAppData.cpp
author Gijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 10 Aug 2017 10:46:19 +0100
changeset 411621 647c08380cd302de2a5050ea9b7537cdf56b015a
parent 378150 7be63656e4fbefdebceb297ca4388ef5f2b884d0
child 450616 4bcb64fd8fa1aae1bdb7a2a019a283eacb7af4ca
permissions -rw-r--r--
Bug 776167 - allow going back to about:newtab, r=smaug,ursula MozReview-Commit-ID: 8FTPI30RqYL

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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 "mozilla/XREAppData.h"
#include "nsCRTGlue.h"

namespace mozilla {

XREAppData&
XREAppData::operator=(const StaticXREAppData& aOther)
{
  vendor = aOther.vendor;
  name = aOther.name;
  remotingName = aOther.remotingName;
  version = aOther.version;
  buildID = aOther.buildID;
  ID = aOther.ID;
  copyright = aOther.copyright;
  flags = aOther.flags;
  minVersion = aOther.minVersion;
  maxVersion = aOther.maxVersion;
  crashReporterURL = aOther.crashReporterURL;
  profile = aOther.profile;
  UAName = aOther.UAName;

  return *this;
}

XREAppData&
XREAppData::operator=(const XREAppData& aOther)
{
  directory = aOther.directory;
  vendor = aOther.vendor;
  name = aOther.name;
  remotingName = aOther.remotingName;
  version = aOther.version;
  buildID = aOther.buildID;
  ID = aOther.ID;
  copyright = aOther.copyright;
  flags = aOther.flags;
  xreDirectory = aOther.xreDirectory;
  minVersion = aOther.minVersion;
  maxVersion = aOther.maxVersion;
  crashReporterURL = aOther.crashReporterURL;
  profile = aOther.profile;
  UAName = aOther.UAName;
#if defined(XP_WIN) && defined(MOZ_SANDBOX)
  sandboxBrokerServices = aOther.sandboxBrokerServices;
  sandboxPermissionsService = aOther.sandboxPermissionsService;
#endif
  return *this;
}

} // namespace mozilla