gfx/thebes/gfxFailure.h
author Chris Karlof <ckarlof@mozilla.com>
Wed, 12 Mar 2014 14:31:18 -0700
changeset 191544 58252ac4f28d9f7c816191ee95ffb5473bd28810
parent 170666 e8931a0bb4217c87a20e99400cbaf5154252fe39
child 285938 91d6e262b662a0b4e47358665e222d3927337af9
permissions -rw-r--r--
Bug 982848: Don't clear syncKeyBundle in BrowserID Identity manager during failures to fetch token. r=markh

/* vim: se cin sw=2 ts=2 et : */
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * 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/. */

#ifndef gfxFailure_h_
#define gfxFailure_h_

#include "nsString.h"
#include "nsIGfxInfo.h"
#include "nsServiceManagerUtils.h"

namespace mozilla {
    namespace gfx {
        inline
        void LogFailure(const nsCString &failure) {
            nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
            gfxInfo->LogFailure(failure);
        }
    }
}

#endif // gfxFailure_h_