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

Unified Diff: webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.cc

Issue 1888593004: Delete all use of tick_util.h. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address Stefan's comments. Created 4 years, 8 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
Index: webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.cc
diff --git a/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.cc b/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.cc
index 2d3c2d90479183126ea3eea89c13a71874310e5c..f1ea004ec32baac7305453184f615b956f6c5638 100644
--- a/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.cc
+++ b/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.cc
@@ -15,6 +15,7 @@
#include <string>
#include "webrtc/base/macutils.h"
+#include "webrtc/base/timeutils.h"
#include "webrtc/modules/desktop_capture/mac/window_list_utils.h"
#include "webrtc/system_wrappers/include/logging.h"
@@ -161,10 +162,7 @@ CGWindowID FullScreenChromeWindowDetector::FindFullScreenWindow(
if (static_cast<CGWindowID>(it->id) != full_screen_window_id)
continue;
- int64_t time_interval =
- (TickTime::Now() - last_udpate_time_).Milliseconds();
- LOG(LS_WARNING) << "The full-screen window exists in the list, "
- << "which was updated " << time_interval << "ms ago.";
+ LOG(LS_WARNING) << "The full-screen window exists in the list.";
return kCGNullWindowID;
}
@@ -186,7 +184,7 @@ void FullScreenChromeWindowDetector::UpdateWindowListIfNeeded(
}
GetWindowList(&current_window_list_);
- last_udpate_time_ = TickTime::Now();
+ last_udpate_time_ = rtc::TimeNanos();
}
}

Powered by Google App Engine
This is Rietveld 408576698