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

Unified Diff: chrome/browser/extensions/api/messaging/incognito_connectability.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context_ Created 6 years, 10 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/messaging/incognito_connectability.h
diff --git a/chrome/browser/extensions/api/messaging/incognito_connectability.h b/chrome/browser/extensions/api/messaging/incognito_connectability.h
index 6b680ab1152a6ca829008dbb9043f64e9157a38d..41dec9c36d3e26c493c754a8ce26c32e3a3d4d22 100644
--- a/chrome/browser/extensions/api/messaging/incognito_connectability.h
+++ b/chrome/browser/extensions/api/messaging/incognito_connectability.h
@@ -10,8 +10,8 @@
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "url/gurl.h"
-class Profile;
namespace content {
+class BrowserContext;
class WebContents;
}
@@ -52,7 +52,7 @@ class IncognitoConnectability : public ProfileKeyedAPI {
// Returns the IncognitoConnectability object for |profile|. |profile| must
James Cook 2014/02/21 00:14:44 nit: |profile| -> |context|.
Yoyo Zhou 2014/02/21 17:17:07 Done.
// be off-the-record.
- static IncognitoConnectability* Get(Profile* profile);
+ static IncognitoConnectability* Get(content::BrowserContext* context);
// Returns true if |url| is allowed to connect from this profile, false
// otherwise. If unknown, this call will block and prompt the user.
@@ -63,7 +63,7 @@ class IncognitoConnectability : public ProfileKeyedAPI {
private:
friend class ProfileKeyedAPIFactory<IncognitoConnectability>;
- explicit IncognitoConnectability(Profile* profile);
+ explicit IncognitoConnectability(content::BrowserContext* context);
virtual ~IncognitoConnectability();
typedef std::map<std::string, std::set<GURL> > ExtensionToOriginsMap;

Powered by Google App Engine
This is Rietveld 408576698