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

Unified Diff: base/file_path.h

Issue 7238018: Upstream android string implementation etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed the comments Created 9 years, 6 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 | « no previous file | base/hash_tables.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_path.h
diff --git a/base/file_path.h b/base/file_path.h
index f60a80cd370e8a904e5a28b734ba965c16a87a8b..b8f78617a529491d1274f5bce20bc98870785fd0 100644
--- a/base/file_path.h
+++ b/base/file_path.h
@@ -380,8 +380,8 @@ class BASE_API FilePath {
// Provide a hash function so that hash_sets and maps can contain FilePath
// objects.
+namespace BASE_HASH_NAMESPACE {
#if defined(COMPILER_GCC)
-namespace __gnu_cxx {
template<>
struct hash<FilePath> {
@@ -390,15 +390,14 @@ struct hash<FilePath> {
}
};
-} // namespace __gnu_cxx
#elif defined(COMPILER_MSVC)
-namespace stdext {
inline size_t hash_value(const FilePath& f) {
return hash_value(f.value());
}
-} // namespace stdext
#endif // COMPILER
+} // namespace BASE_HASH_NAMESPACE
+
#endif // BASE_FILE_PATH_H_
« no previous file with comments | « no previous file | base/hash_tables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698