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

Unified Diff: base/time/time_mac.cc

Issue 1644753002: Make base work on iOS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 4 years, 11 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 | « base/time/time.h ('k') | build/config/android/config.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time_mac.cc
diff --git a/base/time/time_mac.cc b/base/time/time_mac.cc
index 1dbbc3370df6ca4c04a34164bc39c39eea73c231..e0d410f5ce5d29050c47fc2f323fec2f6d6ac87b 100644
--- a/base/time/time_mac.cc
+++ b/base/time/time_mac.cc
@@ -69,10 +69,6 @@ int64_t ComputeCurrentTicks() {
}
int64_t ComputeThreadTicks() {
-#if defined(OS_IOS)
- NOTREACHED();
- return 0;
-#else
base::mac::ScopedMachSendRight thread(mach_thread_self());
mach_msg_type_number_t thread_info_count = THREAD_BASIC_INFO_COUNT;
thread_basic_info_data_t thread_info_data;
@@ -94,7 +90,6 @@ int64_t ComputeThreadTicks() {
absolute_micros *= base::Time::kMicrosecondsPerSecond;
absolute_micros += thread_info_data.user_time.microseconds;
return absolute_micros.ValueOrDie();
-#endif // defined(OS_IOS)
}
} // namespace
« no previous file with comments | « base/time/time.h ('k') | build/config/android/config.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698