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

Unified Diff: chrome/browser/extensions/api/image_writer_private/operation_manager.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: | 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/image_writer_private/operation_manager.h
diff --git a/chrome/browser/extensions/api/image_writer_private/operation_manager.h b/chrome/browser/extensions/api/image_writer_private/operation_manager.h
index a4ea918685775aef701f4d59dfc45d48d09ef4e3..4bd4d30c1c408ab1dcf89be22032a75fbf742290 100644
--- a/chrome/browser/extensions/api/image_writer_private/operation_manager.h
+++ b/chrome/browser/extensions/api/image_writer_private/operation_manager.h
@@ -15,7 +15,6 @@
#include "chrome/browser/extensions/api/image_writer_private/image_writer_private_api.h"
#include "chrome/browser/extensions/api/image_writer_private/operation.h"
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/image_writer_private.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -23,6 +22,12 @@
namespace image_writer_api = extensions::api::image_writer_private;
+class Profile;
+
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
namespace image_writer {
@@ -37,7 +42,7 @@ class OperationManager
public:
typedef std::string ExtensionId;
- explicit OperationManager(Profile* profile);
+ explicit OperationManager(content::BrowserContext* context);
virtual ~OperationManager();
virtual void Shutdown() OVERRIDE;
@@ -80,7 +85,7 @@ class OperationManager
// ProfileKeyedAPI
static ProfileKeyedAPIFactory<OperationManager>*
GetFactoryInstance();
- static OperationManager* Get(Profile* profile);
+ static OperationManager* Get(content::BrowserContext* context);
Profile* profile() { return profile_; }

Powered by Google App Engine
This is Rietveld 408576698