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

Unified Diff: components/sessions/core/session_service_commands.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/sessions/core/session_service_commands.cc
diff --git a/components/sessions/core/session_service_commands.cc b/components/sessions/core/session_service_commands.cc
index c0828d7c6c74382824b0d4e83877996800717e47..3e81868659680e533d86101a464e5f100d9510a5 100644
--- a/components/sessions/core/session_service_commands.cc
+++ b/components/sessions/core/session_service_commands.cc
@@ -6,7 +6,7 @@
#include <stdint.h>
#include <string.h>
-
+#include <utility>
#include <vector>
#include "base/pickle.h"
@@ -837,14 +837,15 @@ bool ReplacePendingCommand(BaseSessionService* base_session_service,
// it with the new one. We need to add to the end of the list just in
// case there is a prune command after the update command.
base_session_service->EraseCommand(*(i.base() - 1));
- base_session_service->AppendRebuildCommand((*command).Pass());
+ base_session_service->AppendRebuildCommand((std::move(*command)));
return true;
}
return false;
}
if ((*command)->id() == kCommandSetActiveWindow &&
existing_command->id() == kCommandSetActiveWindow) {
- base_session_service->SwapCommand(existing_command, (*command).Pass());
+ base_session_service->SwapCommand(existing_command,
+ (std::move(*command)));
return true;
}
}
« no previous file with comments | « components/sessions/core/session_backend_unittest.cc ('k') | components/signin/core/browser/about_signin_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698