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/api/autotest_private/autotest_private_api.h" | 5 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "chrome/browser/extensions/extension_action_manager.h" | 9 #include "chrome/browser/extensions/extension_action_manager.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 static base::LazyInstance<BrowserContextKeyedAPIFactory<AutotestPrivateAPI> > | 228 static base::LazyInstance<BrowserContextKeyedAPIFactory<AutotestPrivateAPI> > |
229 g_factory = LAZY_INSTANCE_INITIALIZER; | 229 g_factory = LAZY_INSTANCE_INITIALIZER; |
230 | 230 |
231 // static | 231 // static |
232 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>* | 232 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>* |
233 AutotestPrivateAPI::GetFactoryInstance() { | 233 AutotestPrivateAPI::GetFactoryInstance() { |
234 return g_factory.Pointer(); | 234 return g_factory.Pointer(); |
235 } | 235 } |
236 | 236 |
237 template <> | 237 template <> |
238 BrowserContextKeyedService* | 238 KeyedService* |
239 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor( | 239 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor( |
240 content::BrowserContext* context) const { | 240 content::BrowserContext* context) const { |
241 return new AutotestPrivateAPI(); | 241 return new AutotestPrivateAPI(); |
242 } | 242 } |
243 | 243 |
244 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { | 244 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { |
245 } | 245 } |
246 | 246 |
247 AutotestPrivateAPI::~AutotestPrivateAPI() { | 247 AutotestPrivateAPI::~AutotestPrivateAPI() { |
248 } | 248 } |
249 | 249 |
250 } // namespace extensions | 250 } // namespace extensions |
OLD | NEW |