| Index: chrome/browser/extensions/api/web_request/web_request_api.h
|
| diff --git a/chrome/browser/extensions/api/web_request/web_request_api.h b/chrome/browser/extensions/api/web_request/web_request_api.h
|
| index e9d434a151965da31573f3e9fa33c00697092bef..6258ae9c225dd4929e0974af48004e267439e02d 100644
|
| --- a/chrome/browser/extensions/api/web_request/web_request_api.h
|
| +++ b/chrome/browser/extensions/api/web_request/web_request_api.h
|
| @@ -16,9 +16,9 @@
|
| #include "base/time/time.h"
|
| #include "chrome/browser/extensions/api/declarative/rules_registry_service.h"
|
| #include "chrome/browser/extensions/api/declarative_webrequest/request_stage.h"
|
| -#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
|
| #include "chrome/browser/extensions/api/web_request/web_request_api_helpers.h"
|
| #include "chrome/browser/extensions/api/web_request/web_request_permissions.h"
|
| +#include "extensions/browser/browser_context_keyed_api_factory.h"
|
| #include "extensions/browser/event_router.h"
|
| #include "extensions/browser/extension_function.h"
|
| #include "extensions/common/url_pattern_set.h"
|
| @@ -59,22 +59,22 @@ class WebRequestRulesRegistry;
|
| // work is done by ExtensionWebRequestEventRouter below. This class observes
|
| // extension::EventRouter to deal with event listeners. There is one instance
|
| // per BrowserContext which is shared with incognito.
|
| -class WebRequestAPI : public ProfileKeyedAPI,
|
| +class WebRequestAPI : public BrowserContextKeyedAPI,
|
| public EventRouter::Observer {
|
| public:
|
| explicit WebRequestAPI(content::BrowserContext* context);
|
| virtual ~WebRequestAPI();
|
|
|
| - // ProfileKeyedAPI support:
|
| - static ProfileKeyedAPIFactory<WebRequestAPI>* GetFactoryInstance();
|
| + // BrowserContextKeyedAPI support:
|
| + static BrowserContextKeyedAPIFactory<WebRequestAPI>* GetFactoryInstance();
|
|
|
| // EventRouter::Observer overrides:
|
| virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE;
|
|
|
| private:
|
| - friend class ProfileKeyedAPIFactory<WebRequestAPI>;
|
| + friend class BrowserContextKeyedAPIFactory<WebRequestAPI>;
|
|
|
| - // ProfileKeyedAPI support:
|
| + // BrowserContextKeyedAPI support:
|
| static const char* service_name() { return "WebRequestAPI"; }
|
| static const bool kServiceRedirectedInIncognito = true;
|
| static const bool kServiceIsNULLWhileTesting = true;
|
|
|