| Index: chrome/browser/extensions/api/developer_private/developer_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.cc b/chrome/browser/extensions/api/developer_private/developer_private_api.cc
|
| index aff6ec18d2bab06654e1edfa0712ce5515fad818..77b22f001f0dec41d82c460f14518feeda491bf7 100644
|
| --- a/chrome/browser/extensions/api/developer_private/developer_private_api.cc
|
| +++ b/chrome/browser/extensions/api/developer_private/developer_private_api.cc
|
| @@ -15,12 +15,12 @@
|
| #include "base/file_util.h"
|
| #include "base/files/file_enumerator.h"
|
| #include "base/i18n/file_util_icu.h"
|
| +#include "base/lazy_instance.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/values.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/devtools/devtools_window.h"
|
| -#include "chrome/browser/extensions/api/developer_private/developer_private_api_factory.h"
|
| #include "chrome/browser/extensions/api/developer_private/entry_picker.h"
|
| #include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
|
| #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h"
|
| @@ -149,8 +149,18 @@ namespace Inspect = api::developer_private::Inspect;
|
| namespace PackDirectory = api::developer_private::PackDirectory;
|
| namespace Reload = api::developer_private::Reload;
|
|
|
| +static base::LazyInstance<ProfileKeyedAPIFactory<DeveloperPrivateAPI> >
|
| + g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +
|
| +// static
|
| +ProfileKeyedAPIFactory<DeveloperPrivateAPI>*
|
| +DeveloperPrivateAPI::GetFactoryInstance() {
|
| + return g_factory.Pointer();
|
| +}
|
| +
|
| +// static
|
| DeveloperPrivateAPI* DeveloperPrivateAPI::Get(Profile* profile) {
|
| - return DeveloperPrivateAPIFactory::GetForProfile(profile);
|
| + return GetFactoryInstance()->GetForProfile(profile);
|
| }
|
|
|
| DeveloperPrivateAPI::DeveloperPrivateAPI(Profile* profile) : profile_(profile) {
|
|
|