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

Side by Side Diff: chrome/browser/extensions/api/declarative/rules_registry_dispatcher.cc

Issue 9192029: Bindings layer for declarative events API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Continued Created 8 years, 11 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/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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698