| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/extensions/api/system_indicator/system_indicator_api.h" | |
| 6 | |
| 7 #include "base/lazy_instance.h" | |
| 8 #include "chrome/browser/profiles/profile.h" | |
| 9 #include "chrome/common/extensions/api/system_indicator/system_indicator_handler
.h" | |
| 10 | |
| 11 namespace extensions { | |
| 12 | |
| 13 SystemIndicatorAPI::SystemIndicatorAPI(Profile* profile) { | |
| 14 (new SystemIndicatorHandler)->Register(); | |
| 15 } | |
| 16 | |
| 17 SystemIndicatorAPI::~SystemIndicatorAPI() { | |
| 18 } | |
| 19 | |
| 20 static base::LazyInstance<ProfileKeyedAPIFactory<SystemIndicatorAPI> > | |
| 21 g_factory = LAZY_INSTANCE_INITIALIZER; | |
| 22 | |
| 23 // static | |
| 24 ProfileKeyedAPIFactory<SystemIndicatorAPI>* | |
| 25 SystemIndicatorAPI::GetFactoryInstance() { | |
| 26 return &g_factory.Get(); | |
| 27 } | |
| 28 | |
| 29 } // namespace extensions | |
| OLD | NEW |