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

Unified Diff: content/browser/service_worker/service_worker_cache_listener.cc

Issue 526193002: use c++03 style enum scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_cache_listener.cc
diff --git a/content/browser/service_worker/service_worker_cache_listener.cc b/content/browser/service_worker/service_worker_cache_listener.cc
index d20c7e511b5f171c8fa4125c76be05ca92b5b056..38aca0c093d9bbbe05e8ab05d0364111812b7572 100644
--- a/content/browser/service_worker/service_worker_cache_listener.cc
+++ b/content/browser/service_worker/service_worker_cache_listener.cc
@@ -23,30 +23,28 @@ WebServiceWorkerCacheError ToWebServiceWorkerCacheError(
switch (err) {
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_NO_ERROR:
NOTREACHED();
- return WebServiceWorkerCacheError::
- WebServiceWorkerCacheErrorNotImplemented;
+ return blink::WebServiceWorkerCacheErrorNotImplemented;
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_NOT_IMPLEMENTED:
- return WebServiceWorkerCacheError::
- WebServiceWorkerCacheErrorNotImplemented;
+ return blink::WebServiceWorkerCacheErrorNotImplemented;
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_NOT_FOUND:
- return WebServiceWorkerCacheError::WebServiceWorkerCacheErrorNotFound;
+ return blink::WebServiceWorkerCacheErrorNotFound;
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_EXISTS:
- return WebServiceWorkerCacheError::WebServiceWorkerCacheErrorExists;
+ return blink::WebServiceWorkerCacheErrorExists;
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_STORAGE:
// TODO(jkarlin): Changethis to CACHE_STORAGE_ERROR_STORAGE once that's
// added.
- return WebServiceWorkerCacheError::WebServiceWorkerCacheErrorNotFound;
+ return blink::WebServiceWorkerCacheErrorNotFound;
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_EMPTY_KEY:
// TODO(jkarlin): Update this to CACHE_STORAGE_ERROR_EMPTY_KEY once that's
// added.
- return WebServiceWorkerCacheError::WebServiceWorkerCacheErrorNotFound;
+ return blink::WebServiceWorkerCacheErrorNotFound;
case ServiceWorkerCacheStorage::CACHE_STORAGE_ERROR_CLOSING:
// TODO(jkarlin): Update this to CACHE_STORAGE_ERROR_CLOSING once that's
// added.
- return WebServiceWorkerCacheError::WebServiceWorkerCacheErrorNotFound;
+ return blink::WebServiceWorkerCacheErrorNotFound;
}
NOTREACHED();
- return WebServiceWorkerCacheError::WebServiceWorkerCacheErrorNotImplemented;
+ return blink::WebServiceWorkerCacheErrorNotImplemented;
}
} // namespace
@@ -160,7 +158,7 @@ void ServiceWorkerCacheListener::OnCacheStorageHasCallback(
if (!has_cache) {
Send(ServiceWorkerMsg_CacheStorageHasError(
request_id,
- WebServiceWorkerCacheError::WebServiceWorkerCacheErrorNotFound));
+ blink::WebServiceWorkerCacheErrorNotFound));
return;
}
Send(ServiceWorkerMsg_CacheStorageHasSuccess(request_id));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698