Chromium Code Reviews| Index: chrome/browser/profiles/profile.h |
| =================================================================== |
| --- chrome/browser/profiles/profile.h (revision 92020) |
| +++ 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 |
|
jochen (gone - plz use gerrit)
2011/07/12 22:52:13
no indenting?
jam
2011/07/12 23:19:44
I'm not sure where you mean we should indent? We d
jochen (gone - plz use gerrit)
2011/07/13 18:41:56
at least in rietvield it looks like the whole bloc
jam
2011/07/13 20:04:32
ah i see that now (couldn't see it earlier!), will
|
| + |
| #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |