Index: mojo/services/html_viewer/webthread_impl.cc |
diff --git a/mojo/services/html_viewer/webthread_impl.cc b/mojo/services/html_viewer/webthread_impl.cc |
index ee8153719fd6c017b3787191219e40ad50de2279..ae108e416d78ff01cd375ca8b6e5cbd4f58ce8f2 100644 |
--- a/mojo/services/html_viewer/webthread_impl.cc |
+++ b/mojo/services/html_viewer/webthread_impl.cc |
@@ -88,6 +88,10 @@ bool WebThreadImpl::isCurrentThread() const { |
return thread_->thread_id() == base::PlatformThread::CurrentId(); |
} |
+blink::PlatformThreadId WebThreadImpl::threadId() const { |
+ return thread_->thread_id(); |
+} |
+ |
WebThreadImpl::~WebThreadImpl() { |
thread_->Stop(); |
} |
@@ -126,6 +130,10 @@ bool WebThreadImplForMessageLoop::isCurrentThread() const { |
return message_loop_->BelongsToCurrentThread(); |
} |
+blink::PlatformThreadId WebThreadImplForMessageLoop::threadId() const { |
+ return thread_id_; |
+} |
+ |
WebThreadImplForMessageLoop::~WebThreadImplForMessageLoop() {} |
} // namespace mojo |