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

Unified Diff: content/browser/background_sync/background_sync_manager.cc

Issue 2908133003: Split GetPermissionStatus into GetPermissionStatusForFrame/Worker
Patch Set: Split GetPermissionStatus into GetPermissionStatusForFrame/Worker Created 3 years, 6 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: content/browser/background_sync/background_sync_manager.cc
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index 43c905851e292dbc43f777eea723a71cfb2bdefd..7d01303da1ad460511fad776a52dbdc3401209b6 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -96,8 +96,8 @@ blink::mojom::PermissionStatus GetBackgroundSyncPermissionOnUIThread(
return blink::mojom::PermissionStatus::DENIED;
// The requesting origin always matches the embedding origin.
- return permission_manager->GetPermissionStatus(
- PermissionType::BACKGROUND_SYNC, origin, origin);
+ return permission_manager->GetPermissionStatusForWorker(
johnme 2017/06/12 10:18:20 Is this correct? It seems that this codepath appli
+ PermissionType::BACKGROUND_SYNC, origin);
}
void NotifyBackgroundSyncRegisteredOnUIThread(

Powered by Google App Engine
This is Rietveld 408576698