Chromium Code Reviews| 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/rules_registry_dispatcher.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()); | |
|
Matt Perry
2012/01/24 22:39:10
Why do you even need to return anything?
battre
2012/01/25 19:25:08
Due to the validation check according to the API d
| |
| 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 |