Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.cc

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698