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

Unified Diff: base/global_descriptors_posix.cc

Issue 10387218: Make GlobalDescriptors::MaybeGet return -1 when the key is not found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing NaCl tests. Created 8 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 | chrome/browser/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/global_descriptors_posix.cc
diff --git a/base/global_descriptors_posix.cc b/base/global_descriptors_posix.cc
index d8884a5bae56cf8acc93a2bf30c32db5a3f05fe2..564785df8b9a8b67c0dbdf9df9c75538ea2baa32 100644
--- a/base/global_descriptors_posix.cc
+++ b/base/global_descriptors_posix.cc
@@ -34,9 +34,7 @@ int GlobalDescriptors::MaybeGet(Key key) const {
return i->second;
}
- // In order to make unittests pass, we define a default mapping from keys to
- // descriptors by adding a fixed offset:
- return kBaseDescriptor + key;
+ return -1;
}
void GlobalDescriptors::Set(Key key, int fd) {
« no previous file with comments | « no previous file | chrome/browser/importer/firefox_importer_unittest_utils_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698