| 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 void TestExtensionSystem::SetEventRouter(scoped_ptr<EventRouter> event_router) { | 155 EventRouter* TestExtensionSystem::event_router() { |
| 156 event_router_.reset(event_router.release()); | 156 return NULL; |
| 157 } | 157 } |
| 158 | 158 |
| 159 EventRouter* TestExtensionSystem::event_router() { return event_router_.get(); } | |
| 160 | |
| 161 ExtensionWarningService* TestExtensionSystem::warning_service() { | 159 ExtensionWarningService* TestExtensionSystem::warning_service() { |
| 162 return NULL; | 160 return NULL; |
| 163 } | 161 } |
| 164 | 162 |
| 165 Blacklist* TestExtensionSystem::blacklist() { | 163 Blacklist* TestExtensionSystem::blacklist() { |
| 166 return blacklist_.get(); | 164 return blacklist_.get(); |
| 167 } | 165 } |
| 168 | 166 |
| 169 ErrorConsole* TestExtensionSystem::error_console() { | 167 ErrorConsole* TestExtensionSystem::error_console() { |
| 170 return error_console_.get(); | 168 return error_console_.get(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 182 return ready_; | 180 return ready_; |
| 183 } | 181 } |
| 184 | 182 |
| 185 // static | 183 // static |
| 186 BrowserContextKeyedService* TestExtensionSystem::Build( | 184 BrowserContextKeyedService* TestExtensionSystem::Build( |
| 187 content::BrowserContext* profile) { | 185 content::BrowserContext* profile) { |
| 188 return new TestExtensionSystem(static_cast<Profile*>(profile)); | 186 return new TestExtensionSystem(static_cast<Profile*>(profile)); |
| 189 } | 187 } |
| 190 | 188 |
| 191 } // namespace extensions | 189 } // namespace extensions |
| OLD | NEW |