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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_windows_api.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (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/tabs/tabs_windows_api.h
diff --git a/chrome/browser/extensions/api/tabs/tabs_windows_api.h b/chrome/browser/extensions/api/tabs/tabs_windows_api.h
index cba587430d1bb15f36964c95f6fea08d8433e520..d65b4eef0f5214c5155690f94aa5e0b0f3a6fa29 100644
--- a/chrome/browser/extensions/api/tabs/tabs_windows_api.h
+++ b/chrome/browser/extensions/api/tabs/tabs_windows_api.h
@@ -16,11 +16,11 @@ class WindowsEventRouter;
class TabsWindowsAPI : public ProfileKeyedAPI, public EventRouter::Observer {
public:
- explicit TabsWindowsAPI(Profile* profile);
+ explicit TabsWindowsAPI(content::BrowserContext* context);
virtual ~TabsWindowsAPI();
// Convenience method to get the TabsWindowsAPI for a profile.
- static TabsWindowsAPI* Get(Profile* profile);
+ static TabsWindowsAPI* Get(content::BrowserContext* context);
TabsEventRouter* tabs_event_router();
WindowsEventRouter* windows_event_router();
@@ -38,7 +38,7 @@ class TabsWindowsAPI : public ProfileKeyedAPI, public EventRouter::Observer {
private:
friend class ProfileKeyedAPIFactory<TabsWindowsAPI>;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
// ProfileKeyedAPI implementation.
static const char* service_name() {

Powered by Google App Engine
This is Rietveld 408576698