| Index: chrome/browser/extensions/api/runtime/runtime_api.cc
|
| diff --git a/chrome/browser/extensions/api/runtime/runtime_api.cc b/chrome/browser/extensions/api/runtime/runtime_api.cc
|
| index 682b62cc9cf7be8f7c027e2e640dee658dd0dcb0..562a76dd0e8d1df4db64c7b7bc7592fcd3592bff 100644
|
| --- a/chrome/browser/extensions/api/runtime/runtime_api.cc
|
| +++ b/chrome/browser/extensions/api/runtime/runtime_api.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <utility>
|
|
|
| +#include "base/lazy_instance.h"
|
| #include "base/logging.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/values.h"
|
| @@ -138,6 +139,14 @@ std::string GetUninstallURL(ExtensionPrefs* prefs,
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| +static base::LazyInstance<ProfileKeyedAPIFactory<RuntimeAPI> > g_factory =
|
| + LAZY_INSTANCE_INITIALIZER;
|
| +
|
| +// static
|
| +ProfileKeyedAPIFactory<RuntimeAPI>* RuntimeAPI::GetFactoryInstance() {
|
| + return g_factory.Pointer();
|
| +}
|
| +
|
| RuntimeAPI::RuntimeAPI(content::BrowserContext* context)
|
| : browser_context_(context),
|
| dispatch_chrome_updated_event_(false),
|
|
|