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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
index a702c9a0ed394bdf94f3c0427142d3a4302c7414..ff94af10c1db27ac813b0822a5b9370c6775d530 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
#include <string>
+#include <utility>
#include "base/base64.h"
#include "base/memory/ref_counted.h"
@@ -201,13 +202,13 @@ void DataReductionProxyChromeSettings::InitDataReductionProxySettings(
scoped_ptr<data_reduction_proxy::DataReductionProxyService> service =
make_scoped_ptr(new data_reduction_proxy::DataReductionProxyService(
- this, profile_prefs, request_context_getter, store.Pass(),
+ this, profile_prefs, request_context_getter, std::move(store),
ui_task_runner, io_data->io_task_runner(), db_task_runner,
commit_delay));
data_reduction_proxy::DataReductionProxySettings::
- InitDataReductionProxySettings(
- data_reduction_proxy_enabled_pref_name_, profile_prefs, io_data,
- service.Pass());
+ InitDataReductionProxySettings(data_reduction_proxy_enabled_pref_name_,
+ profile_prefs, io_data,
+ std::move(service));
io_data->SetDataReductionProxyService(
data_reduction_proxy_service()->GetWeakPtr());

Powered by Google App Engine
This is Rietveld 408576698