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

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

Issue 287843002: ServiceWorker: DB functions should return status code instead of boolean (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | Annotate | Revision Log
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 22 matching lines...) Expand all
33 33
34 case SERVICE_WORKER_ERROR_NOT_FOUND: 34 case SERVICE_WORKER_ERROR_NOT_FOUND:
35 *error_type = WebServiceWorkerError::ErrorTypeNotFound; 35 *error_type = WebServiceWorkerError::ErrorTypeNotFound;
36 return; 36 return;
37 37
38 case SERVICE_WORKER_ERROR_ABORT: 38 case SERVICE_WORKER_ERROR_ABORT:
39 case SERVICE_WORKER_ERROR_IPC_FAILED: 39 case SERVICE_WORKER_ERROR_IPC_FAILED:
40 case SERVICE_WORKER_ERROR_FAILED: 40 case SERVICE_WORKER_ERROR_FAILED:
41 case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND: 41 case SERVICE_WORKER_ERROR_PROCESS_NOT_FOUND:
42 case SERVICE_WORKER_ERROR_EXISTS: 42 case SERVICE_WORKER_ERROR_EXISTS:
43 case SERVICE_WORKER_ERROR_DB_CORRUPTED:
44 // Unexpected, or should have bailed out before calling this, or we don't 43 // Unexpected, or should have bailed out before calling this, or we don't
45 // have a corresponding blink error code yet. 44 // have a corresponding blink error code yet.
46 break; // Fall through to NOTREACHED(). 45 break; // Fall through to NOTREACHED().
47 } 46 }
48 NOTREACHED() << "Got unexpected error code: " 47 NOTREACHED() << "Got unexpected error code: "
49 << status << " " << ServiceWorkerStatusToString(status); 48 << status << " " << ServiceWorkerStatusToString(status);
50 } 49 }
51 50
52 } // namespace content 51 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698