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

Unified Diff: chrome/browser/profiles/profile.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
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698