| 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..9c75f7877c83b59d7d94378a6020e2022b063685 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"
|
|
|
| @@ -162,7 +163,7 @@ CGWindowID FullScreenChromeWindowDetector::FindFullScreenWindow(
|
| continue;
|
|
|
| int64_t time_interval =
|
| - (TickTime::Now() - last_udpate_time_).Milliseconds();
|
| + (rtc::TimeNanos() - last_update_time_) / rtc::kNumNanosecsPerMillisec;
|
| LOG(LS_WARNING) << "The full-screen window exists in the list, "
|
| << "which was updated " << time_interval << "ms ago.";
|
| return kCGNullWindowID;
|
| @@ -186,7 +187,7 @@ void FullScreenChromeWindowDetector::UpdateWindowListIfNeeded(
|
| }
|
|
|
| GetWindowList(¤t_window_list_);
|
| - last_udpate_time_ = TickTime::Now();
|
| + last_udpate_time_ = rtc::TimeNanos();
|
| }
|
| }
|
|
|
|
|