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

Side by Side Diff: chrome/browser/devtools/devtools_network_controller_handle.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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 "chrome/browser/devtools/devtools_network_controller_handle.h" 5 #include "chrome/browser/devtools/devtools_network_controller_handle.h"
6 6
7 #include <utility>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "chrome/browser/devtools/devtools_network_conditions.h" 10 #include "chrome/browser/devtools/devtools_network_conditions.h"
9 #include "chrome/browser/devtools/devtools_network_controller.h" 11 #include "chrome/browser/devtools/devtools_network_controller.h"
10 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
11 13
12 using content::BrowserThread; 14 using content::BrowserThread;
13 15
14 DevToolsNetworkControllerHandle::DevToolsNetworkControllerHandle() { 16 DevToolsNetworkControllerHandle::DevToolsNetworkControllerHandle() {
15 DCHECK_CURRENTLY_ON(BrowserThread::UI); 17 DCHECK_CURRENTLY_ON(BrowserThread::UI);
16 } 18 }
(...skipping 24 matching lines...) Expand all
41 if (!controller_) 43 if (!controller_)
42 controller_.reset(new DevToolsNetworkController); 44 controller_.reset(new DevToolsNetworkController);
43 } 45 }
44 46
45 void DevToolsNetworkControllerHandle::SetNetworkStateOnIO( 47 void DevToolsNetworkControllerHandle::SetNetworkStateOnIO(
46 const std::string& client_id, 48 const std::string& client_id,
47 scoped_ptr<DevToolsNetworkConditions> conditions) { 49 scoped_ptr<DevToolsNetworkConditions> conditions) {
48 DCHECK_CURRENTLY_ON(BrowserThread::IO); 50 DCHECK_CURRENTLY_ON(BrowserThread::IO);
49 51
50 LazyInitialize(); 52 LazyInitialize();
51 controller_->SetNetworkState(client_id, conditions.Pass()); 53 controller_->SetNetworkState(client_id, std::move(conditions));
52 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698