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

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: | 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..5d7da9a3946f622c6a900d6d8cc30cb9970717ce 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;
}
@@ -50,9 +50,9 @@ class IncognitoConnectability : public ProfileKeyedAPI {
int last_checked_invocation_count_;
};
- // Returns the IncognitoConnectability object for |profile|. |profile| must
+ // Returns the IncognitoConnectability object for |context|. |context| must
// 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