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 72ba685d36882778c53fa604890cf669bf175060..b8fd142164af94ba8fe05d587602770744d27432 100644 |
--- a/content/child/service_worker/service_worker_dispatcher.cc |
+++ b/content/child/service_worker/service_worker_dispatcher.cc |
@@ -25,7 +25,6 @@ |
#include "content/public/common/content_constants.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h" |
-#include "url/url_constants.h" |
using blink::WebServiceWorkerError; |
using blink::WebServiceWorkerProvider; |
@@ -111,8 +110,8 @@ |
WebServiceWorkerRegistrationCallbacks* callbacks) { |
DCHECK(callbacks); |
- if (pattern.possibly_invalid_spec().size() > url::kMaxURLChars || |
- script_url.possibly_invalid_spec().size() > url::kMaxURLChars) { |
+ if (pattern.possibly_invalid_spec().size() > kMaxURLChars || |
+ script_url.possibly_invalid_spec().size() > kMaxURLChars) { |
scoped_ptr<WebServiceWorkerRegistrationCallbacks> |
owned_callbacks(callbacks); |
std::string error_message(kServiceWorkerRegisterErrorPrefix); |
@@ -162,7 +161,7 @@ |
WebServiceWorkerGetRegistrationCallbacks* callbacks) { |
DCHECK(callbacks); |
- if (document_url.possibly_invalid_spec().size() > url::kMaxURLChars) { |
+ if (document_url.possibly_invalid_spec().size() > kMaxURLChars) { |
scoped_ptr<WebServiceWorkerGetRegistrationCallbacks> owned_callbacks( |
callbacks); |
std::string error_message(kServiceWorkerGetRegistrationErrorPrefix); |