Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h

Issue 378103002: Add NetworkingPrivateDelegate class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ServiceClient Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h
diff --git a/chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h b/chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h
index 85d38fb1ff95a3d7e16de387ac9b6bcd3d732a17..e518f34dec7194c35c8df31ebeb3065fba01aec3 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h
+++ b/chrome/browser/extensions/api/networking_private/networking_private_service_client_factory.h
@@ -8,7 +8,9 @@
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class Profile;
+namespace content {
+class BrowserContext;
+}
namespace extensions {
@@ -17,7 +19,8 @@ class NetworkingPrivateServiceClient;
class NetworkingPrivateServiceClientFactory
: public BrowserContextKeyedServiceFactory {
public:
- static NetworkingPrivateServiceClient* GetForProfile(Profile* profile);
+ static NetworkingPrivateServiceClient* GetForBrowserContext(
+ content::BrowserContext* browser_context);
static NetworkingPrivateServiceClientFactory* GetInstance();
@@ -29,7 +32,7 @@ class NetworkingPrivateServiceClientFactory
// BrowserContextKeyedServiceFactory:
virtual KeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
+ content::BrowserContext* browser_context) const OVERRIDE;
virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698