| Index: chrome/browser/extensions/app_launch_manifest_parser.cc
|
| diff --git a/chrome/browser/extensions/app_launch_manifest_parser.cc b/chrome/browser/extensions/app_launch_manifest_parser.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3068856836ab95952df513dfdff68911d38c36ef
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/app_launch_manifest_parser.cc
|
| @@ -0,0 +1,35 @@
|
| +// 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/app_launch_manifest_parser.h"
|
| +
|
| +#include "base/lazy_instance.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| +#include "chrome/common/extensions/app_launch_manifest_handler.h"
|
| +#include "chrome/common/extensions/extension_manifest_constants.h"
|
| +#include "chrome/common/extensions/manifest_handler.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +AppLaunchManifestParser::AppLaunchManifestParser(Profile* profile) {
|
| + std::vector<std::string> app_launch_keys(AppLaunchManifestHandler::keys());
|
| + linked_ptr<AppLaunchManifestHandler> app_launch_handler(
|
| + new AppLaunchManifestHandler);
|
| + for (size_t i = 0; i < app_launch_keys.size(); ++i)
|
| + ManifestHandler::Register(app_launch_keys[i], app_launch_handler);
|
| +}
|
| +
|
| +AppLaunchManifestParser::~AppLaunchManifestParser() {
|
| +}
|
| +
|
| +static base::LazyInstance<ProfileKeyedAPIFactory<AppLaunchManifestParser> >
|
| + g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +
|
| +// static
|
| +ProfileKeyedAPIFactory<AppLaunchManifestParser>*
|
| + AppLaunchManifestParser::GetFactoryInstance() {
|
| + return &g_factory.Get();
|
| +}
|
| +
|
| +} // namespace extensions
|
|
|