| Index: chrome/browser/extensions/api/system_indicator/system_indicator_api.cc
|
| diff --git a/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc b/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..212a296db1a94eecd907ac649f55e68a860dcda8
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/extensions/api/system_indicator/system_indicator_api.h"
|
| +
|
| +#include "base/lazy_instance.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| +#include "chrome/common/extensions/api/system_indicator/system_indicator_handler.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +SystemIndicatorAPI::SystemIndicatorAPI(Profile* profile) {
|
| + (new SystemIndicatorHandler)->Register();
|
| +}
|
| +
|
| +SystemIndicatorAPI::~SystemIndicatorAPI() {
|
| +}
|
| +
|
| +static base::LazyInstance<ProfileKeyedAPIFactory<SystemIndicatorAPI> >
|
| + g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +
|
| +// static
|
| +ProfileKeyedAPIFactory<SystemIndicatorAPI>*
|
| +SystemIndicatorAPI::GetFactoryInstance() {
|
| + return &g_factory.Get();
|
| +}
|
| +
|
| +} // namespace extensions
|
|
|