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

Unified Diff: chrome/browser/extensions/extension_function.h

Issue 7346024: Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/extension_function.h
===================================================================
--- chrome/browser/extensions/extension_function.h (revision 92309)
+++ chrome/browser/extensions/extension_function.h (working copy)
@@ -14,7 +14,6 @@
#include "base/memory/weak_ptr.h"
#include "base/process.h"
#include "chrome/browser/extensions/extension_info_map.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/extension.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_observer.h"
@@ -27,6 +26,7 @@
class ExtensionFunctionDispatcher;
class UIThreadExtensionFunction;
class IOThreadExtensionFunction;
+class Profile;
class QuotaLimitHeuristic;
class RenderViewHost;
@@ -97,8 +97,8 @@
void set_name(const std::string& name) { name_ = name; }
const std::string& name() const { return name_; }
- void set_profile_id(ProfileId profile_id) { profile_id_ = profile_id; }
- ProfileId profile_id() const { return profile_id_; }
+ void set_profile(void* profile) { profile_ = profile; }
+ void* profile() const { return profile_; }
void set_extension(const Extension* extension) { extension_ = extension; }
const Extension* GetExtension() const { return extension_.get(); }
@@ -153,8 +153,8 @@
// Id of this request, used to map the response back to the caller.
int request_id_;
- // The ID of the Profile of this function's extension.
- ProfileId profile_id_;
+ // The Profile of this function's extension.
+ void* profile_;
// The extension that called this function.
scoped_refptr<const Extension> extension_;

Powered by Google App Engine
This is Rietveld 408576698