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

Unified Diff: chrome/browser/extensions/api/system_info/system_info_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/system_info/system_info_api.h
diff --git a/chrome/browser/extensions/api/system_info/system_info_api.h b/chrome/browser/extensions/api/system_info/system_info_api.h
index a77c117ad971f860871e5cd53813dd00e8fa5f37..88e08a9bffa24885d6a698843542a2555630121a 100644
--- a/chrome/browser/extensions/api/system_info/system_info_api.h
+++ b/chrome/browser/extensions/api/system_info/system_info_api.h
@@ -5,18 +5,18 @@
#ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_SYSTEM_INFO_API_H_
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
namespace extensions {
// A Profile-scoped object which is registered as an observer of EventRouter
// to observe the systemInfo event listener arrival/removal.
-class SystemInfoAPI : public ProfileKeyedAPI,
+class SystemInfoAPI : public BrowserContextKeyedAPI,
public EventRouter::Observer {
public:
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<SystemInfoAPI>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<SystemInfoAPI>* GetFactoryInstance();
explicit SystemInfoAPI(content::BrowserContext* context);
virtual ~SystemInfoAPI();
@@ -29,9 +29,9 @@ class SystemInfoAPI : public ProfileKeyedAPI,
virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<SystemInfoAPI>;
+ friend class BrowserContextKeyedAPIFactory<SystemInfoAPI>;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() {
return "SystemInfoAPI";
}

Powered by Google App Engine
This is Rietveld 408576698