| Index: chrome/browser/extensions/api/log_private/log_private_api.h
|
| diff --git a/chrome/browser/extensions/api/log_private/log_private_api.h b/chrome/browser/extensions/api/log_private/log_private_api.h
|
| index 6c37804fec3ae7f39d8ca3083e8e64481749df0f..4b948aa65d30563bbe2c5668a81c4a7232e38a85 100644
|
| --- a/chrome/browser/extensions/api/log_private/log_private_api.h
|
| +++ b/chrome/browser/extensions/api/log_private/log_private_api.h
|
| @@ -10,12 +10,12 @@
|
|
|
| #include "chrome/browser/extensions/api/log_private/filter_handler.h"
|
| #include "chrome/browser/extensions/api/log_private/log_parser.h"
|
| -#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
|
| #include "chrome/browser/extensions/chrome_extension_function.h"
|
| #include "chrome/browser/feedback/system_logs/about_system_logs_fetcher.h"
|
| #include "chrome/common/extensions/api/log_private.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| +#include "extensions/browser/browser_context_keyed_api_factory.h"
|
| #include "net/base/net_log.h"
|
|
|
| class Profile;
|
| @@ -26,7 +26,7 @@ class BrowserContext;
|
|
|
| namespace extensions {
|
|
|
| -class LogPrivateAPI : public ProfileKeyedAPI,
|
| +class LogPrivateAPI : public BrowserContextKeyedAPI,
|
| public content::NotificationObserver,
|
| public net::NetLog::ThreadSafeObserver {
|
| public:
|
| @@ -39,8 +39,8 @@ class LogPrivateAPI : public ProfileKeyedAPI,
|
| void StartNetInternalsWatch(const std::string& extension_id);
|
| void StopNetInternalsWatch(const std::string& extension_id);
|
|
|
| - // ProfileKeyedAPI implementation.
|
| - static ProfileKeyedAPIFactory<LogPrivateAPI>* GetFactoryInstance();
|
| + // BrowserContextKeyedAPI implementation.
|
| + static BrowserContextKeyedAPIFactory<LogPrivateAPI>* GetFactoryInstance();
|
|
|
| // content::NotificationObserver implementation.
|
| virtual void Observe(int type,
|
| @@ -48,7 +48,7 @@ class LogPrivateAPI : public ProfileKeyedAPI,
|
| const content::NotificationDetails& details) OVERRIDE;
|
|
|
| private:
|
| - friend class ProfileKeyedAPIFactory<LogPrivateAPI>;
|
| + friend class BrowserContextKeyedAPIFactory<LogPrivateAPI>;
|
|
|
| // ChromeNetLog::ThreadSafeObserver implementation:
|
| virtual void OnAddEntry(const net::NetLog::Entry& entry) OVERRIDE;
|
| @@ -60,7 +60,7 @@ class LogPrivateAPI : public ProfileKeyedAPI,
|
| void MaybeStopNetInternalLogging();
|
| void StopNetInternalLogging();
|
|
|
| - // ProfileKeyedAPI implementation.
|
| + // BrowserContextKeyedAPI implementation.
|
| static const char* service_name() {
|
| return "LogPrivateAPI";
|
| }
|
|
|