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

Unified Diff: chrome/browser/chromeos/extensions/screenlock_private_api.h

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview 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 330812a6149295bc392675c61cbb97828aa4420a..679f34432648cd19874af4df05aee467c2220599 100644
--- a/chrome/browser/chromeos/extensions/screenlock_private_api.h
+++ b/chrome/browser/chromeos/extensions/screenlock_private_api.h
@@ -9,6 +9,10 @@
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chromeos/dbus/session_manager_client.h"
+namespace gfx {
+class Image;
+}
+
namespace extensions {
class ScreenlockPrivateGetLockedFunction : public ChromeAsyncExtensionFunction {
@@ -62,7 +66,7 @@ class ScreenlockPrivateEventRouter
: public extensions::ProfileKeyedAPI,
public chromeos::SessionManagerClient::Observer {
public:
- explicit ScreenlockPrivateEventRouter(Profile* profile);
+ explicit ScreenlockPrivateEventRouter(content::BrowserContext* context);
virtual ~ScreenlockPrivateEventRouter();
void OnButtonClicked();
@@ -88,7 +92,7 @@ class ScreenlockPrivateEventRouter
void DispatchEvent(const std::string& event_name, base::Value* arg);
- Profile* profile_;
+ content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(ScreenlockPrivateEventRouter);
};

Powered by Google App Engine
This is Rietveld 408576698