| 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(¤t_window_list_);
|
| - last_udpate_time_ = TickTime::Now();
|
| + last_udpate_time_ = rtc::TimeNanos();
|
| }
|
| }
|
|
|
|
|