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

Unified Diff: chrome/browser/chromeos/extensions/screenlock_private_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/chromeos/extensions/screenlock_private_api.h
diff --git a/chrome/browser/chromeos/extensions/screenlock_private_api.h b/chrome/browser/chromeos/extensions/screenlock_private_api.h
index 10996da78aaa34101d2ca6e6a2b1cc155270a503..7e597d2e3a1b47ed3ac534b54c1f3f4d8a536bd0 100644
--- a/chrome/browser/chromeos/extensions/screenlock_private_api.h
+++ b/chrome/browser/chromeos/extensions/screenlock_private_api.h
@@ -6,9 +6,9 @@
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_SCREENLOCK_PRIVATE_API_H_
#include "chrome/browser/chromeos/login/login_display.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chromeos/dbus/session_manager_client.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
namespace gfx {
class Image;
@@ -117,7 +117,7 @@ class ScreenlockPrivateAcceptAuthAttemptFunction
};
class ScreenlockPrivateEventRouter
- : public extensions::ProfileKeyedAPI,
+ : public extensions::BrowserContextKeyedAPI,
public chromeos::SessionManagerClient::Observer {
public:
explicit ScreenlockPrivateEventRouter(content::BrowserContext* context);
@@ -128,9 +128,10 @@ class ScreenlockPrivateEventRouter
void OnAuthAttempted(chromeos::LoginDisplay::AuthType auth_type,
const std::string& value);
- // ProfileKeyedAPI
- static extensions::ProfileKeyedAPIFactory<ScreenlockPrivateEventRouter>*
- GetFactoryInstance();
+ // BrowserContextKeyedAPI
+ static extensions::BrowserContextKeyedAPIFactory<
+ ScreenlockPrivateEventRouter>*
+ GetFactoryInstance();
virtual void Shutdown() OVERRIDE;
// chromeos::SessionManagerClient::Observer
@@ -138,9 +139,10 @@ class ScreenlockPrivateEventRouter
virtual void ScreenIsUnlocked() OVERRIDE;
private:
- friend class extensions::ProfileKeyedAPIFactory<ScreenlockPrivateEventRouter>;
+ friend class extensions::BrowserContextKeyedAPIFactory<
+ ScreenlockPrivateEventRouter>;
- // ProfileKeyedAPI
+ // BrowserContextKeyedAPI
static const char* service_name() {
return "ScreenlockPrivateEventRouter";
}
« no previous file with comments | « chrome/browser/chromeos/extensions/media_player_api.cc ('k') | chrome/browser/chromeos/extensions/screenlock_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698