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

Side by Side Diff: content/browser/background_sync/background_sync_context_impl.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/browser/background_sync/background_sync_context_impl.h" 5 #include "content/browser/background_sync/background_sync_context_impl.h"
6 6
7 #include <utility>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/stl_util.h" 10 #include "base/stl_util.h"
9 #include "content/browser/background_sync/background_sync_manager.h" 11 #include "content/browser/background_sync/background_sync_manager.h"
10 #include "content/browser/background_sync/background_sync_service_impl.h" 12 #include "content/browser/background_sync/background_sync_service_impl.h"
11 #include "content/browser/service_worker/service_worker_context_wrapper.h" 13 #include "content/browser/service_worker/service_worker_context_wrapper.h"
12 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
13 15
14 namespace content { 16 namespace content {
15 17
16 BackgroundSyncContextImpl::BackgroundSyncContextImpl() { 18 BackgroundSyncContextImpl::BackgroundSyncContextImpl() {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 DCHECK_CURRENTLY_ON(BrowserThread::IO); 73 DCHECK_CURRENTLY_ON(BrowserThread::IO);
72 DCHECK(!background_sync_manager_); 74 DCHECK(!background_sync_manager_);
73 75
74 background_sync_manager_ = BackgroundSyncManager::Create(context); 76 background_sync_manager_ = BackgroundSyncManager::Create(context);
75 } 77 }
76 78
77 void BackgroundSyncContextImpl::CreateServiceOnIOThread( 79 void BackgroundSyncContextImpl::CreateServiceOnIOThread(
78 mojo::InterfaceRequest<BackgroundSyncService> request) { 80 mojo::InterfaceRequest<BackgroundSyncService> request) {
79 DCHECK_CURRENTLY_ON(BrowserThread::IO); 81 DCHECK_CURRENTLY_ON(BrowserThread::IO);
80 DCHECK(background_sync_manager_); 82 DCHECK(background_sync_manager_);
81 services_.insert(new BackgroundSyncServiceImpl(this, request.Pass())); 83 services_.insert(new BackgroundSyncServiceImpl(this, std::move(request)));
82 } 84 }
83 85
84 void BackgroundSyncContextImpl::ShutdownOnIO() { 86 void BackgroundSyncContextImpl::ShutdownOnIO() {
85 DCHECK_CURRENTLY_ON(BrowserThread::IO); 87 DCHECK_CURRENTLY_ON(BrowserThread::IO);
86 88
87 STLDeleteElements(&services_); 89 STLDeleteElements(&services_);
88 background_sync_manager_.reset(); 90 background_sync_manager_.reset();
89 } 91 }
90 92
91 } // namespace content 93 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_update_job_unittest.cc ('k') | content/browser/background_sync/background_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698