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

Unified Diff: content/browser/gamepad/gamepad_provider.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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: content/browser/gamepad/gamepad_provider.cc
diff --git a/content/browser/gamepad/gamepad_provider.cc b/content/browser/gamepad/gamepad_provider.cc
index 438fcea4e48cfdef41a0ca487f66730500e6cffc..682afc51d353a73cc0759ec433c5f9e7ecae1772 100644
--- a/content/browser/gamepad/gamepad_provider.cc
+++ b/content/browser/gamepad/gamepad_provider.cc
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/browser/gamepad/gamepad_provider.h"
+
#include <stddef.h>
#include <string.h>
-
#include <cmath>
#include <set>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -20,7 +22,6 @@
#include "build/build_config.h"
#include "content/browser/gamepad/gamepad_data_fetcher.h"
#include "content/browser/gamepad/gamepad_platform_data_fetcher.h"
-#include "content/browser/gamepad/gamepad_provider.h"
#include "content/browser/gamepad/gamepad_service.h"
#include "content/common/gamepad_hardware_buffer.h"
#include "content/common/gamepad_messages.h"
@@ -54,7 +55,7 @@ GamepadProvider::GamepadProvider(scoped_ptr<GamepadDataFetcher> fetcher)
have_scheduled_do_poll_(false),
devices_changed_(true),
ever_had_user_gesture_(false) {
- Initialize(fetcher.Pass());
+ Initialize(std::move(fetcher));
}
GamepadProvider::~GamepadProvider() {
@@ -160,7 +161,7 @@ void GamepadProvider::DoInitializePollingThread(
if (!fetcher)
fetcher.reset(new GamepadPlatformDataFetcher);
- data_fetcher_ = fetcher.Pass();
+ data_fetcher_ = std::move(fetcher);
}
void GamepadProvider::SendPauseHint(bool paused) {
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest_unittest.cc ('k') | content/browser/gamepad/gamepad_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698