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

Side by Side Diff: content/browser/service_worker/service_worker_registration_status.cc

Issue 871853002: ServiceWorker: add ServiceWorkerClients.claim() support (2/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove assignment within conditional expression Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_registration_status.h" 5 #include "content/browser/service_worker/service_worker_registration_status.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 case SERVICE_WORKER_ERROR_SECURITY: 46 case SERVICE_WORKER_ERROR_SECURITY:
47 *error_type = WebServiceWorkerError::ErrorTypeSecurity; 47 *error_type = WebServiceWorkerError::ErrorTypeSecurity;
48 return; 48 return;
49 49
50 case SERVICE_WORKER_ERROR_ABORT: 50 case SERVICE_WORKER_ERROR_ABORT:
51 case SERVICE_WORKER_ERROR_IPC_FAILED: 51 case SERVICE_WORKER_ERROR_IPC_FAILED:
52 case SERVICE_WORKER_ERROR_FAILED: 52 case SERVICE_WORKER_ERROR_FAILED:
53 case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND: 53 case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND:
54 case SERVICE_WORKER_ERROR_EXISTS: 54 case SERVICE_WORKER_ERROR_EXISTS:
55 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED: 55 case SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED:
56 case SERVICE_WORKER_ERROR_STATE:
56 // Unexpected, or should have bailed out before calling this, or we don't 57 // Unexpected, or should have bailed out before calling this, or we don't
57 // have a corresponding blink error code yet. 58 // have a corresponding blink error code yet.
58 break; // Fall through to NOTREACHED(). 59 break; // Fall through to NOTREACHED().
59 } 60 }
60 NOTREACHED() << "Got unexpected error code: " 61 NOTREACHED() << "Got unexpected error code: "
61 << status << " " << ServiceWorkerStatusToString(status); 62 << status << " " << ServiceWorkerStatusToString(status);
62 } 63 }
63 64
64 } // namespace content 65 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698