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

Unified Diff: chrome/browser/extensions/api/history/history_api.h

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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/history/history_api.h
diff --git a/chrome/browser/extensions/api/history/history_api.h b/chrome/browser/extensions/api/history/history_api.h
index ca5987127258948a582786e4f98d627d0446a63c..1a73b2474acebf0d38803108a39f4b8a466e6d8f 100644
--- a/chrome/browser/extensions/api/history/history_api.h
+++ b/chrome/browser/extensions/api/history/history_api.h
@@ -10,12 +10,12 @@
#include "base/compiler_specific.h"
#include "base/task/cancelable_task_tracker.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/history/history_notifications.h"
#include "chrome/browser/history/history_service.h"
#include "chrome/common/extensions/api/history.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
namespace base {
@@ -53,8 +53,7 @@ class HistoryEventRouter : public content::NotificationObserver {
DISALLOW_COPY_AND_ASSIGN(HistoryEventRouter);
};
-class HistoryAPI : public ProfileKeyedAPI,
- public EventRouter::Observer {
+class HistoryAPI : public BrowserContextKeyedAPI, public EventRouter::Observer {
public:
explicit HistoryAPI(content::BrowserContext* context);
virtual ~HistoryAPI();
@@ -62,18 +61,18 @@ class HistoryAPI : public ProfileKeyedAPI,
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<HistoryAPI>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<HistoryAPI>* GetFactoryInstance();
// EventRouter::Observer implementation.
virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<HistoryAPI>;
+ friend class BrowserContextKeyedAPIFactory<HistoryAPI>;
content::BrowserContext* browser_context_;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "HistoryAPI";
}
@@ -83,8 +82,8 @@ class HistoryAPI : public ProfileKeyedAPI,
scoped_ptr<HistoryEventRouter> history_event_router_;
};
-template<>
-void ProfileKeyedAPIFactory<HistoryAPI>::DeclareFactoryDependencies();
+template <>
+void BrowserContextKeyedAPIFactory<HistoryAPI>::DeclareFactoryDependencies();
// Base class for history function APIs.
class HistoryFunction : public ChromeAsyncExtensionFunction {
« no previous file with comments | « chrome/browser/extensions/api/hid/hid_device_manager.cc ('k') | chrome/browser/extensions/api/history/history_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698