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

Side by Side Diff: extensions/common/features/feature.cc

Issue 2494653005: Support API aliases (Closed)
Patch Set: . Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/features/feature.h" 5 #include "extensions/common/features/feature.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 Feature::Feature() : no_parent_(false), check_channel_(false) {} 49 Feature::Feature() : no_parent_(false), check_channel_(false) {}
50 50
51 Feature::~Feature() {} 51 Feature::~Feature() {}
52 52
53 void Feature::set_name(base::StringPiece name) { 53 void Feature::set_name(base::StringPiece name) {
54 name_ = name.as_string(); 54 name_ = name.as_string();
55 } 55 }
56 56
57 void Feature::set_alias(base::StringPiece alias) {
58 alias_ = alias.as_string();
59 }
60
61 void Feature::set_source(base::StringPiece source) {
62 source_ = source.as_string();
63 }
64
57 } // namespace extensions 65 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/renderer/js_extension_bindings_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698