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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_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/sessions/sessions_api.h
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.h b/chrome/browser/extensions/api/sessions/sessions_api.h
index c7d9149268b2f32f30badf259f0c010cc779728c..e04401937f3d2c90cb4835d05e83cabe8354a367 100644
--- a/chrome/browser/extensions/api/sessions/sessions_api.h
+++ b/chrome/browser/extensions/api/sessions/sessions_api.h
@@ -7,7 +7,6 @@
#include <string>
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/sessions/tab_restore_service_observer.h"
@@ -80,23 +79,6 @@ class SessionsRestoreFunction : public ChromeSyncExtensionFunction {
Browser* browser);
};
-class SessionsAPI : public ProfileKeyedAPI {
- public:
- explicit SessionsAPI(Profile* profile);
- virtual ~SessionsAPI();
-
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<SessionsAPI>* GetFactoryInstance();
- private:
- friend class ProfileKeyedAPIFactory<SessionsAPI>;
-
- // ProfileKeyedAPI implementation.
- static const char* service_name() {
- return "SessionsAPI";
- }
- static const bool kServiceIsNULLWhileTesting = true;
-};
-
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SESSIONS_SESSIONS_API_H__

Powered by Google App Engine
This is Rietveld 408576698