Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: chrome/common/extensions/api/extension_api_stub.cc

Issue 11411324: Exclude chrome/common/extensions/api/ from build if enable_extensions==0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698