Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get.

Move it to extensions/browser. (Not extensions/browser/api, since it's now being used not just by API implementations.)

This change is purely mechanical (some lines are more affected by clang-format than others).

BUG=309909
[email protected]

Review URL: https://codereview.chromium.org/178193030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254999 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/plugin_manager.h b/chrome/browser/extensions/plugin_manager.h
index 71f91d6..c66ac5a 100644
--- a/chrome/browser/extensions/plugin_manager.h
+++ b/chrome/browser/extensions/plugin_manager.h
@@ -5,10 +5,10 @@
 #ifndef CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_
 #define CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_
 
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h"
 #include "content/public/browser/notification_observer.h"
 #include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
 
 class GURL;
 class Profile;
@@ -19,14 +19,14 @@
 
 namespace extensions {
 
-class PluginManager : public ProfileKeyedAPI,
+class PluginManager : public BrowserContextKeyedAPI,
                       public content::NotificationObserver {
  public:
   explicit PluginManager(content::BrowserContext* context);
   virtual ~PluginManager();
 
-  // ProfileKeyedAPI implementation.
-  static ProfileKeyedAPIFactory<PluginManager>* GetFactoryInstance();
+  // BrowserContextKeyedAPI implementation.
+  static BrowserContextKeyedAPIFactory<PluginManager>* GetFactoryInstance();
 
   // content::NotificationObserver impelmentation.
   virtual void Observe(int type,
@@ -34,7 +34,7 @@
                        const content::NotificationDetails& details) OVERRIDE;
 
  private:
-  friend class ProfileKeyedAPIFactory<PluginManager>;
+  friend class BrowserContextKeyedAPIFactory<PluginManager>;
 
   // We implement some Pepper plug-ins using NaCl to take advantage of NaCl's
   // strong sandbox. Typically, these NaCl modules are stored in extensions
@@ -51,7 +51,7 @@
 
   extensions::NaClModuleInfo::List::iterator FindNaClModule(const GURL& url);
 
-  // ProfileKeyedAPI implementation.
+  // BrowserContextKeyedAPI implementation.
   static const char* service_name() { return "PluginManager"; }
   static const bool kServiceIsNULLWhileTesting = true;