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

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

Issue 966393002: ServiceWorkerVersion: remove unused parameter in DispatchInstallEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/browser/fileapi/chrome_blob_storage_context.h" 10 #include "content/browser/fileapi/chrome_blob_storage_context.h"
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 ServiceWorkerStatusCode* result) { 561 ServiceWorkerStatusCode* result) {
562 ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO)); 562 ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO));
563 version_->StartWorker(CreateReceiver(BrowserThread::UI, done, result)); 563 version_->StartWorker(CreateReceiver(BrowserThread::UI, done, result));
564 } 564 }
565 565
566 void InstallOnIOThread(const base::Closure& done, 566 void InstallOnIOThread(const base::Closure& done,
567 ServiceWorkerStatusCode* result) { 567 ServiceWorkerStatusCode* result) {
568 ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO)); 568 ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO));
569 version_->SetStatus(ServiceWorkerVersion::INSTALLING); 569 version_->SetStatus(ServiceWorkerVersion::INSTALLING);
570 version_->DispatchInstallEvent( 570 version_->DispatchInstallEvent(
571 -1, CreateReceiver(BrowserThread::UI, done, result)); 571 CreateReceiver(BrowserThread::UI, done, result));
572 } 572 }
573 573
574 void ActivateOnIOThread(const base::Closure& done, 574 void ActivateOnIOThread(const base::Closure& done,
575 ServiceWorkerStatusCode* result) { 575 ServiceWorkerStatusCode* result) {
576 ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO)); 576 ASSERT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::IO));
577 version_->SetStatus(ServiceWorkerVersion::ACTIVATING); 577 version_->SetStatus(ServiceWorkerVersion::ACTIVATING);
578 version_->DispatchActivateEvent( 578 version_->DispatchActivateEvent(
579 CreateReceiver(BrowserThread::UI, done, result)); 579 CreateReceiver(BrowserThread::UI, done, result));
580 } 580 }
581 581
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 ASSERT_EQ(SERVICE_WORKER_OK, status); 1198 ASSERT_EQ(SERVICE_WORKER_OK, status);
1199 // Stop the worker. 1199 // Stop the worker.
1200 StopWorker(SERVICE_WORKER_OK); 1200 StopWorker(SERVICE_WORKER_OK);
1201 // Restart the worker. 1201 // Restart the worker.
1202 StartWorker(SERVICE_WORKER_OK); 1202 StartWorker(SERVICE_WORKER_OK);
1203 // Stop the worker. 1203 // Stop the worker.
1204 StopWorker(SERVICE_WORKER_OK); 1204 StopWorker(SERVICE_WORKER_OK);
1205 } 1205 }
1206 1206
1207 } // namespace content 1207 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698