| 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 // We always return an empty list here. The binding of return values |
| 15 // is handled in JavaScript by event.js. |
| 16 result_.reset(new ListValue()); |
| 17 return true; |
| 18 } |
| 19 |
| 20 bool RemoveRulesFunction::RunImpl() { |
| 21 // LOG(ERROR) << "RemoveRulesFunction called"; |
| 22 return true; |
| 23 } |
| 24 |
| 25 bool GetRulesFunction::RunImpl() { |
| 26 // LOG(ERROR) << "GetRulesFunction called"; |
| 27 result_.reset(new ListValue()); |
| 28 return true; |
| 29 } |
| 30 |
| 31 } // namespace extensions |
| OLD | NEW |