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

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: . 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..79288fb0e3eaaf0ab26a7a9a1676664a5a2d5ad1 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
@@ -1,4 +1,4 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
pneubeck (no reviews) 2014/07/14 21:33:58 shouldn't be changed?
stevenjb 2014/07/15 00:33:40 Done.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,7 +8,9 @@
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-class Profile;
+namespace context {
+class BrowserContext;
+}
namespace extensions {
@@ -17,9 +19,9 @@ class NetworkingPrivateServiceClient;
class NetworkingPrivateServiceClientFactory
: public BrowserContextKeyedServiceFactory {
public:
- static NetworkingPrivateServiceClient* GetForProfile(Profile* profile);
-
- static NetworkingPrivateServiceClientFactory* GetInstance();
+ static NetworkingPrivateServiceClient* GetForBrowserContext(
+ content::BrowserContext* browser_context);
+ static NetworkingPrivateServiceClient* GetInstance();
private:
friend struct DefaultSingletonTraits<NetworkingPrivateServiceClientFactory>;
@@ -29,7 +31,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