OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 // Stub methods to be used when extensions are disabled |
| 6 // i.e. ENABLE_EXTENSIONS is not defined |
| 7 |
| 8 #include "chrome/common/extensions/api/extension_api.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 // static |
| 13 ExtensionAPI* ExtensionAPI::GetSharedInstance() { |
| 14 return NULL; |
| 15 } |
| 16 |
| 17 // static |
| 18 ExtensionAPI* ExtensionAPI::CreateWithDefaultConfiguration() { |
| 19 return NULL; |
| 20 } |
| 21 |
| 22 bool ExtensionAPI::IsPrivileged(const std::string& full_name) { |
| 23 return false; |
| 24 } |
| 25 |
| 26 } // namespace extensions |
OLD | NEW |