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

Unified Diff: chrome/browser/extensions/api/omnibox/omnibox_api.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/omnibox/omnibox_api.h
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.h b/chrome/browser/extensions/api/omnibox/omnibox_api.h
index 500da785a8784f5c1e5ee8ed8f7cc7b2a8ab8c9e..5bb0641eb12dcd5c3514ad9e386446018b0b9b58 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.h
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.h
@@ -30,6 +30,7 @@ class ListValue;
}
namespace content {
+class BrowserContext;
class WebContents;
}
@@ -85,14 +86,14 @@ class OmniboxSendSuggestionsFunction : public ChromeSyncExtensionFunction {
class OmniboxAPI : public ProfileKeyedAPI,
public content::NotificationObserver {
public:
- explicit OmniboxAPI(Profile* profile);
+ explicit OmniboxAPI(content::BrowserContext* context);
virtual ~OmniboxAPI();
// ProfileKeyedAPI implementation.
static ProfileKeyedAPIFactory<OmniboxAPI>* GetFactoryInstance();
// Convenience method to get the OmniboxAPI for a profile.
- static OmniboxAPI* Get(Profile* profile);
+ static OmniboxAPI* Get(content::BrowserContext* context);
// content::NotificationObserver implementation.
virtual void Observe(int type,
« no previous file with comments | « chrome/browser/extensions/api/messaging/message_service.cc ('k') | chrome/browser/extensions/api/omnibox/omnibox_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698