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

Unified Diff: chrome/browser/extensions/api/runtime/runtime_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/runtime/runtime_api.h
diff --git a/chrome/browser/extensions/api/runtime/runtime_api.h b/chrome/browser/extensions/api/runtime/runtime_api.h
index 41695fefd511074f557576692806edd918b7ecb5..6e65e1b704cefa195cd1a124d3ae0757c42b0401 100644
--- a/chrome/browser/extensions/api/runtime/runtime_api.h
+++ b/chrome/browser/extensions/api/runtime/runtime_api.h
@@ -7,11 +7,11 @@
#include <string>
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/common/extensions/api/runtime.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "extensions/browser/update_observer.h"
class Profile;
@@ -31,11 +31,11 @@ class ExtensionHost;
// Runtime API dispatches onStartup, onInstalled, and similar events to
// extensions. There is one instance shared between a browser context and
// its related incognito instance.
-class RuntimeAPI : public ProfileKeyedAPI,
+class RuntimeAPI : public BrowserContextKeyedAPI,
public content::NotificationObserver,
public extensions::UpdateObserver {
public:
- static ProfileKeyedAPIFactory<RuntimeAPI>* GetFactoryInstance();
+ static BrowserContextKeyedAPIFactory<RuntimeAPI>* GetFactoryInstance();
explicit RuntimeAPI(content::BrowserContext* context);
virtual ~RuntimeAPI();
@@ -46,14 +46,14 @@ class RuntimeAPI : public ProfileKeyedAPI,
const content::NotificationDetails& details) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<RuntimeAPI>;
+ friend class BrowserContextKeyedAPIFactory<RuntimeAPI>;
void OnExtensionsReady();
void OnExtensionLoaded(const Extension* extension);
void OnExtensionInstalled(const Extension* extension);
void OnExtensionUninstalled(const Extension* extension);
- // ProfileKeyedAPI implementation:
+ // BrowserContextKeyedAPI implementation:
static const char* service_name() { return "RuntimeAPI"; }
static const bool kServiceRedirectedInIncognito = true;
static const bool kServiceIsNULLWhileTesting = true;

Powered by Google App Engine
This is Rietveld 408576698