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

Side by Side Diff: chrome/common/extensions/features/api_feature.cc

Issue 12846011: Implement API features for the Extension API feature system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed memory leak Created 7 years, 8 months 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
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 #include "chrome/common/extensions/features/api_feature.h"
6
7 namespace extensions {
8
9 APIFeature::APIFeature() {
10 }
11
12 APIFeature::~APIFeature() {
13 }
14
15 std::string APIFeature::Parse(const DictionaryValue* value) {
16 std::string error = SimpleFeature::Parse(value);
17 if (!error.empty())
18 return error;
19
20 if (GetContexts()->empty())
21 return name() + ": API features must specify at least one context.";
22
23 return "";
24 }
25
26 } // namespace
OLDNEW
« no previous file with comments | « chrome/common/extensions/features/api_feature.h ('k') | chrome/common/extensions/features/base_feature_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698