Index: chrome/browser/profiles/profile.h |
=================================================================== |
--- chrome/browser/profiles/profile.h (revision 92309) |
+++ chrome/browser/profiles/profile.h (working copy) |
@@ -102,8 +102,6 @@ |
class URLRequestContextGetter; |
} |
-typedef intptr_t ProfileId; |
- |
class Profile { |
public: |
// Profile services are accessed with the following parameter. This parameter |
@@ -140,9 +138,6 @@ |
// Key used to bind profile to the widget with which it is associated. |
static const char* kProfileKey; |
- // Value that represents no profile Id. |
- static const ProfileId kInvalidProfileId; |
- |
Profile(); |
virtual ~Profile() {} |
@@ -167,10 +162,6 @@ |
// the browser frame. |
virtual std::string GetProfileName() = 0; |
- // Returns a unique Id that can be used to identify this profile at runtime. |
- // This Id is not persistent and will not survive a restart of the browser. |
- virtual ProfileId GetRuntimeId() = 0; |
- |
// Returns the path of the directory where this profile's data is stored. |
virtual FilePath GetPath() = 0; |
@@ -573,4 +564,17 @@ |
int accessibility_pause_level_; |
}; |
+#if defined(COMPILER_GCC) |
+ namespace __gnu_cxx { |
+ |
+ template<> |
+ struct hash<Profile*> { |
+ std::size_t operator()(Profile* const& p) const { |
+ return reinterpret_cast<std::size_t>(p); |
+ } |
+ }; |
+ |
+ } // namespace __gnu_cxx |
+ #endif |
+ |
#endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |