OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "chrome/browser/extensions/api/declarative/test_rules_registry.h" | 7 #include "extensions/browser/api/declarative/test_rules_registry.h" |
8 | 8 |
9 namespace extensions { | 9 namespace extensions { |
10 | 10 |
11 TestRulesRegistry::TestRulesRegistry(content::BrowserThread::ID owner_thread, | 11 TestRulesRegistry::TestRulesRegistry(content::BrowserThread::ID owner_thread, |
12 const std::string& event_name, | 12 const std::string& event_name, |
13 const WebViewKey& webview_key) | 13 const WebViewKey& webview_key) |
14 : RulesRegistry(NULL /*profile*/, | 14 : RulesRegistry(NULL /*profile*/, |
15 event_name, | 15 event_name, |
16 owner_thread, | 16 owner_thread, |
17 NULL, | 17 NULL, |
(...skipping 28 matching lines...) Expand all Loading... |
46 return result_; | 46 return result_; |
47 } | 47 } |
48 | 48 |
49 void TestRulesRegistry::SetResult(const std::string& result) { | 49 void TestRulesRegistry::SetResult(const std::string& result) { |
50 result_ = result; | 50 result_ = result; |
51 } | 51 } |
52 | 52 |
53 TestRulesRegistry::~TestRulesRegistry() {} | 53 TestRulesRegistry::~TestRulesRegistry() {} |
54 | 54 |
55 } // namespace extensions | 55 } // namespace extensions |
OLD | NEW |