[BackgroundSyncManager] Remove origin argument from public BackgroundSyncManager...
commitc1a361d95254ab697b077187d0c6204cb18722b9
authorjkarlin <jkarlin@chromium.org>
Tue, 28 Apr 2015 22:00:51 +0000 (28 15:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Apr 2015 22:01:25 +0000 (28 22:01 +0000)
treeb7e940bbe976820550ab46e7d55ee08dc158fed1
parent019a57a8f6f38eee54a7a255829e810d4b70b59b
[BackgroundSyncManager] Remove origin argument from public BackgroundSyncManager methods

The origin can be determined from the live ServiceWorkerRegistration,
use that instead of requiring the renderer to pass it.

Also, verify that the live registration is active to prevent
BackgroundSyncManager::Register from being called prematurely.

BUG=482012

Review URL: https://codereview.chromium.org/1110993003

Cr-Commit-Position: refs/heads/master@{#327371}
content/browser/background_sync/background_sync_manager.cc
content/browser/background_sync/background_sync_manager.h
content/browser/background_sync/background_sync_manager_unittest.cc