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

Side by Side Diff: content/public/test/background_sync_test_util.cc

Issue 1763123002: [BackgroundSync] Remove BackgroundSyncRegistrationHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS7 Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/public/test/background_sync_test_util.h" 5 #include "content/public/test/background_sync_test_util.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/task_runner_util.h" 8 #include "base/task_runner_util.h"
9 #include "content/browser/background_sync/background_sync_manager.h" 9 #include "content/browser/background_sync/background_sync_manager.h"
10 #include "content/browser/background_sync/background_sync_network_observer.h" 10 #include "content/browser/background_sync/background_sync_network_observer.h"
11 #include "content/browser/background_sync/background_sync_registration_handle.h"
12 #include "content/public/browser/background_sync_context.h" 11 #include "content/public/browser/background_sync_context.h"
13 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
14 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
15 #include "content/public/browser/storage_partition.h" 14 #include "content/public/browser/storage_partition.h"
16 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
17 #include "net/base/network_change_notifier.h" 16 #include "net/base/network_change_notifier.h"
18 17
19 namespace content { 18 namespace content {
20 namespace background_sync_test_util { 19 namespace background_sync_test_util {
21 20
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 base::Bind(&SetOnlineOnIOThread, 56 base::Bind(&SetOnlineOnIOThread,
58 base::Unretained(GetStoragePartition(web_contents) 57 base::Unretained(GetStoragePartition(web_contents)
59 ->GetBackgroundSyncContext()), 58 ->GetBackgroundSyncContext()),
60 online)); 59 online));
61 base::RunLoop().RunUntilIdle(); 60 base::RunLoop().RunUntilIdle();
62 } 61 }
63 62
64 } // namespace background_sync_test_util 63 } // namespace background_sync_test_util
65 64
66 } // namespace content 65 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/background_sync.mojom ('k') | content/renderer/background_sync/background_sync_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698