Fix crash on app list start page contents not existing.
[chromium-blink-merge.git] / third_party / libjingle / overrides / allocator_shim / allocator_stub.cc
blob77caee47e6f5b72524e151926453472acf18b63c
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "allocator_shim/allocator_stub.h"
7 #if defined(OS_MACOSX) || defined(OS_ANDROID)
8 #error "The allocator stub isn't supported (or needed) on mac or android."
9 #endif
11 void* Allocate(std::size_t n) {
12 return operator new(n);
15 void Dellocate(void* p) {
16 return operator delete(p);