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/api/location/location_manager.h" | 9 #include "chrome/browser/extensions/api/location/location_manager.h" |
10 #include "chrome/browser/extensions/blacklist.h" | 10 #include "chrome/browser/extensions/blacklist.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 } | 173 } |
174 | 174 |
175 ExtensionWarningService* TestExtensionSystem::warning_service() { | 175 ExtensionWarningService* TestExtensionSystem::warning_service() { |
176 return NULL; | 176 return NULL; |
177 } | 177 } |
178 | 178 |
179 Blacklist* TestExtensionSystem::blacklist() { | 179 Blacklist* TestExtensionSystem::blacklist() { |
180 return blacklist_.get(); | 180 return blacklist_.get(); |
181 } | 181 } |
182 | 182 |
183 const OneShotEvent& TestExtensionSystem::ready() const { | |
184 return ready_; | |
185 } | |
186 | |
187 void TestExtensionSystem::ExtensionServiceReady() { ready_.Signal(); } | |
188 void TestExtensionSystem::MakeReady() { ready_.Signal(); } | |
Matt Perry
2013/05/16 00:55:50
Might this cause problems since Signal can only be
Jeffrey Yasskin
2013/05/16 00:59:20
Tests could cause a DCHECK by calling MakeReady()
| |
189 | |
183 // static | 190 // static |
184 ProfileKeyedService* TestExtensionSystem::Build( | 191 ProfileKeyedService* TestExtensionSystem::Build( |
185 content::BrowserContext* profile) { | 192 content::BrowserContext* profile) { |
186 return new TestExtensionSystem(static_cast<Profile*>(profile)); | 193 return new TestExtensionSystem(static_cast<Profile*>(profile)); |
187 } | 194 } |
188 | 195 |
189 } // namespace extensions | 196 } // namespace extensions |
OLD | NEW |