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

Unified Diff: content/child/service_worker/service_worker_dispatcher.cc

Issue 806703004: [ServiceWorker] Use WebPageVisibilityState in ClientInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « content/child/request_extra_data.h ('k') | content/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/service_worker/service_worker_dispatcher.cc
diff --git a/content/child/service_worker/service_worker_dispatcher.cc b/content/child/service_worker/service_worker_dispatcher.cc
index 251e162708266dfffa6bc9f0a7e49b1234b97dd3..d95e5b94d4612c216f1f5ab95c22e2a540710b0e 100644
--- a/content/child/service_worker/service_worker_dispatcher.cc
+++ b/content/child/service_worker/service_worker_dispatcher.cc
@@ -681,7 +681,7 @@ void ServiceWorkerDispatcher::OnGetClientInfo(int thread_id,
if (found != script_clients_.end() && found->second->getClientInfo(&info)) {
ServiceWorkerClientInfo result;
result.client_id = info.clientID;
- result.visibility_state = info.visibilityState.utf8();
+ result.page_visibility_state = info.pageVisibilityState;
result.is_focused = info.isFocused;
result.url = info.url;
result.frame_type = static_cast<RequestContextFrameType>(info.frameType);
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698