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

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

Issue 560993002: remove c++11 enum scope in ServiceWorkerRegistration::OnRestoreFinished (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 5 #include "content/browser/service_worker/service_worker_registration.h"
6 6
7 #include "content/browser/service_worker/service_worker_context_core.h" 7 #include "content/browser/service_worker/service_worker_context_core.h"
8 #include "content/browser/service_worker/service_worker_info.h" 8 #include "content/browser/service_worker/service_worker_info.h"
9 #include "content/browser/service_worker/service_worker_register_job.h" 9 #include "content/browser/service_worker/service_worker_register_job.h"
10 #include "content/browser/service_worker/service_worker_utils.h" 10 #include "content/browser/service_worker/service_worker_utils.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 FOR_EACH_OBSERVER( 316 FOR_EACH_OBSERVER(
317 Listener, listeners_, OnRegistrationFinishedUninstalling(this)); 317 Listener, listeners_, OnRegistrationFinishedUninstalling(this));
318 } 318 }
319 319
320 void ServiceWorkerRegistration::OnRestoreFinished( 320 void ServiceWorkerRegistration::OnRestoreFinished(
321 const StatusCallback& callback, 321 const StatusCallback& callback,
322 scoped_refptr<ServiceWorkerVersion> version, 322 scoped_refptr<ServiceWorkerVersion> version,
323 ServiceWorkerStatusCode status) { 323 ServiceWorkerStatusCode status) {
324 if (!context_) { 324 if (!context_) {
325 callback.Run(ServiceWorkerStatusCode::SERVICE_WORKER_ERROR_ABORT); 325 callback.Run(SERVICE_WORKER_ERROR_ABORT);
michaeln 2014/09/10 22:36:57 lgtm, thnx
Mostyn Bramley-Moore 2014/09/10 23:13:35 Acknowledged.
326 return; 326 return;
327 } 327 }
328 context_->storage()->NotifyDoneInstallingRegistration( 328 context_->storage()->NotifyDoneInstallingRegistration(
329 this, version.get(), status); 329 this, version.get(), status);
330 callback.Run(status); 330 callback.Run(status);
331 } 331 }
332 332
333 } // namespace content 333 } // namespace content
OLDNEW
« 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