| 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 "chrome/browser/extensions/test_extension_system.h" | 5 #include "chrome/browser/extensions/test_extension_system.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/extensions/blacklist.h" | 9 #include "chrome/browser/extensions/blacklist.h" |
| 10 #include "chrome/browser/extensions/error_console/error_console.h" | 10 #include "chrome/browser/extensions/error_console/error_console.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 return state_store_.get(); | 145 return state_store_.get(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 InfoMap* TestExtensionSystem::info_map() { return info_map_.get(); } | 148 InfoMap* TestExtensionSystem::info_map() { return info_map_.get(); } |
| 149 | 149 |
| 150 LazyBackgroundTaskQueue* | 150 LazyBackgroundTaskQueue* |
| 151 TestExtensionSystem::lazy_background_task_queue() { | 151 TestExtensionSystem::lazy_background_task_queue() { |
| 152 return NULL; | 152 return NULL; |
| 153 } | 153 } |
| 154 | 154 |
| 155 EventRouter* TestExtensionSystem::event_router() { | 155 void TestExtensionSystem::SetEventRouter(scoped_ptr<EventRouter> event_router) { |
| 156 return NULL; | 156 event_router_.reset(event_router.release()); |
| 157 } | 157 } |
| 158 | 158 |
| 159 EventRouter* TestExtensionSystem::event_router() { return event_router_.get(); } |
| 160 |
| 159 ExtensionWarningService* TestExtensionSystem::warning_service() { | 161 ExtensionWarningService* TestExtensionSystem::warning_service() { |
| 160 return NULL; | 162 return NULL; |
| 161 } | 163 } |
| 162 | 164 |
| 163 Blacklist* TestExtensionSystem::blacklist() { | 165 Blacklist* TestExtensionSystem::blacklist() { |
| 164 return blacklist_.get(); | 166 return blacklist_.get(); |
| 165 } | 167 } |
| 166 | 168 |
| 167 ErrorConsole* TestExtensionSystem::error_console() { | 169 ErrorConsole* TestExtensionSystem::error_console() { |
| 168 return error_console_.get(); | 170 return error_console_.get(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 180 return ready_; | 182 return ready_; |
| 181 } | 183 } |
| 182 | 184 |
| 183 // static | 185 // static |
| 184 BrowserContextKeyedService* TestExtensionSystem::Build( | 186 BrowserContextKeyedService* TestExtensionSystem::Build( |
| 185 content::BrowserContext* profile) { | 187 content::BrowserContext* profile) { |
| 186 return new TestExtensionSystem(static_cast<Profile*>(profile)); | 188 return new TestExtensionSystem(static_cast<Profile*>(profile)); |
| 187 } | 189 } |
| 188 | 190 |
| 189 } // namespace extensions | 191 } // namespace extensions |
| OLD | NEW |