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

Unified Diff: chrome/browser/extensions/api/image_writer_private/operation_manager.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/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 4bd4d30c1c408ab1dcf89be22032a75fbf742290..b255a989e80f919c958c44966c5673129d9286ff 100644
--- a/chrome/browser/extensions/api/image_writer_private/operation_manager.h
+++ b/chrome/browser/extensions/api/image_writer_private/operation_manager.h
@@ -14,10 +14,10 @@
#include "base/timer/timer.h"
#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/common/extensions/api/image_writer_private.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 "url/gurl.h"
namespace image_writer_api = extensions::api::image_writer_private;
@@ -35,10 +35,9 @@ class Operation;
// Manages image writer operations for the current profile. Including clean-up
// and message routing.
-class OperationManager
- : public ProfileKeyedAPI,
- public content::NotificationObserver,
- public base::SupportsWeakPtr<OperationManager> {
+class OperationManager : public BrowserContextKeyedAPI,
+ public content::NotificationObserver,
+ public base::SupportsWeakPtr<OperationManager> {
public:
typedef std::string ExtensionId;
@@ -82,9 +81,8 @@ class OperationManager
int progress,
const std::string& error_message);
- // ProfileKeyedAPI
- static ProfileKeyedAPIFactory<OperationManager>*
- GetFactoryInstance();
+ // BrowserContextKeyedAPI
+ static BrowserContextKeyedAPIFactory<OperationManager>* GetFactoryInstance();
static OperationManager* Get(content::BrowserContext* context);
Profile* profile() { return profile_; }
@@ -103,7 +101,7 @@ class OperationManager
Operation* GetOperation(const ExtensionId& extension_id);
void DeleteOperation(const ExtensionId& extension_id);
- friend class ProfileKeyedAPIFactory<OperationManager>;
+ friend class BrowserContextKeyedAPIFactory<OperationManager>;
typedef std::map<ExtensionId, scoped_refptr<Operation> > OperationMap;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698