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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry.cc

Issue 9422003: Migrate Declarative API bindings to new JSON objects generated by JSON compiler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leaks Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/declarative/rules_registry.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry.cc b/chrome/browser/extensions/api/declarative/rules_registry.cc
new file mode 100644
index 0000000000000000000000000000000000000000..db7a2edaae58179f668cdf6fd059cb37c9e776c8
--- /dev/null
+++ b/chrome/browser/extensions/api/declarative/rules_registry.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/api/declarative/rules_registry.h"
+#include "content/public/browser/browser_thread.h"
+
+namespace extensions {
+
+// static
+void RulesRegistryDeleteTraits::Destruct(const RulesRegistry* rules_registry) {
+ content::BrowserThread::DeleteSoon(rules_registry->GetOwnerThread(),
+ FROM_HERE, rules_registry);
+}
+
+} // extensions

Powered by Google App Engine
This is Rietveld 408576698