| 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 #include "chrome/browser/extensions/api/declarative/declarative_api.h" |
| 6 |
| 7 #include "base/values.h" |
| 8 |
| 9 namespace extensions { |
| 10 |
| 11 bool AddRulesFunction::RunImpl() { |
| 12 // LOG(ERROR) << "AddRulesFunction called"; |
| 13 |
| 14 ListValue* rules_list = NULL; |
| 15 EXTENSION_FUNCTION_VALIDATE(args_->GetList(1, &rules_list)); |
| 16 |
| 17 // TODO(battre): Generate unique IDs and priorities here. |
| 18 |
| 19 result_.reset(rules_list->DeepCopy()); |
| 20 return true; |
| 21 } |
| 22 |
| 23 bool RemoveRulesFunction::RunImpl() { |
| 24 // LOG(ERROR) << "RemoveRulesFunction called"; |
| 25 return true; |
| 26 } |
| 27 |
| 28 bool GetRulesFunction::RunImpl() { |
| 29 // LOG(ERROR) << "GetRulesFunction called"; |
| 30 result_.reset(new ListValue()); |
| 31 return true; |
| 32 } |
| 33 |
| 34 } // namespace extensions |
| OLD | NEW |